From ffb63c9c8d1cca040d770cf5959ab2d957479516 Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 13 May 2024 18:19:59 -0400 Subject: [PATCH] ci: regex out the cargo/rustc target for cargo-deb Signed-off-by: strawberry --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e24e777e..7dc0584d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,10 +206,12 @@ jobs: - name: Build static ${{ matrix.target }} run: | + CARGO_DEB_TARGET_TUPLE=$(echo ${{ matrix.target }} | grep -o -E '^([^-]*-){3}[^-]*') + bin/nix-build-and-cache just .#static-${{ matrix.target }} mkdir -p target/release/${{ matrix.target }} cp -v -f result/bin/conduit target/release/${{ matrix.target }} - direnv exec . cargo deb --verbose --no-build --no-strip --target=${{ matrix.target }} --output target/release/${{ matrix.target }}/${{ matrix.target }}.deb + direnv exec . cargo deb --verbose --no-build --no-strip --target=$CARGO_DEB_TARGET_TUPLE --output target/release/${{ matrix.target }}/${{ matrix.target }}.deb mv -v target/release/${{ matrix.target }}/conduit static-${{ matrix.target }} mv -v target/release/${{ matrix.target }}/${{ matrix.target }}.deb ${{ matrix.target }}.deb