ci: try to fix cargo-deb arm64 stripping

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-19 18:29:38 -04:00 committed by June
parent 8fc32b8e90
commit 305f75b0e7

View file

@ -106,12 +106,12 @@ jobs:
max-parallel: 3 max-parallel: 3
matrix: matrix:
target: [ target: [
"static-x86_64-unknown-linux-musl", "x86_64-unknown-linux-musl",
"static-x86_64-unknown-linux-musl-jemalloc", "x86_64-unknown-linux-musl-jemalloc",
"static-x86_64-unknown-linux-musl-hmalloc", "x86_64-unknown-linux-musl-hmalloc",
"static-aarch64-unknown-linux-musl", "aarch64-unknown-linux-musl",
"static-aarch64-unknown-linux-musl-jemalloc", "aarch64-unknown-linux-musl-jemalloc",
"static-aarch64-unknown-linux-musl-hmalloc", "aarch64-unknown-linux-musl-hmalloc",
] ]
steps: steps:
@ -179,15 +179,15 @@ jobs:
- name: Build static artifacts - name: Build static artifacts
run: | run: |
./bin/nix-build-and-cache .#${{ matrix.target }} ./bin/nix-build-and-cache .#static-${{ matrix.target }}
mkdir -p target/release mkdir -p target/release
cp -v -f result/bin/conduit target/release cp -v -f result/bin/conduit target/release
direnv exec . cargo deb --no-build --output target/debian/${{ matrix.target }}.deb direnv exec . cargo deb --no-build --target=${{ matrix.target }} --output target/debian/${{ matrix.target }}.deb
- name: Upload static artifacts - name: Upload static artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.target }} name: static-${{ matrix.target }}
path: result/bin/conduit path: result/bin/conduit
if-no-files-found: error if-no-files-found: error