Skip to content

Commit

Permalink
bug: fix rust injector
Browse files Browse the repository at this point in the history
Signed-off-by: schristoff <28318173+schristoff@users.noreply.github.com>
  • Loading branch information
schristoff committed May 15, 2024
1 parent 04d9e0e commit 4750146
Show file tree
Hide file tree
Showing 10 changed files with 784 additions and 610 deletions.
4 changes: 2 additions & 2 deletions .github/actions/k3d/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ runs:
- run: "curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash"
shell: bash

- run: k3d cluster delete && k3d cluster create --k3s-arg="--disable=traefik@server:0" --image="rancher/k3s:v1.28.4-k3s2"
shell: bash
- run: k3d cluster delete && k3d cluster create --k3s-arg="--disable=traefik@server:0"
shell: bash
3 changes: 2 additions & 1 deletion .github/workflows/build-rust-injector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:

- name: "Build Rust Binary for x86_64 and arm64"
run: |
cd src/injector
make build-injector-linux
cd src/injector/target
cd target
mkdir -p ../dist
cp x86_64-unknown-linux-musl/release/zarf-injector ../dist/zarf-injector-amd64
cp aarch64-unknown-linux-musl/release/zarf-injector ../dist/zarf-injector-arm64
Expand Down
5 changes: 5 additions & 0 deletions src/injector/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "relocation-model=static", "-C", "strip=symbols"]

[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "relocation-model=static", "-C", "strip=symbols"]

0 comments on commit 4750146

Please sign in to comment.