From 5f25f99f9171cb6b06a59970fbf492301946654f Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 5 Jan 2023 13:51:12 +0700 Subject: [PATCH] Cargo-rs is unmaintained swapping for raw cargo --- .github/workflows/build.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 696a496..e8d66fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,10 +60,9 @@ jobs: with: path: target key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - - uses: actions-rs/cargo@v2 - with: - command: build - args: --release --all-features + - name: Build + run: | + cargo build --release --all-features - uses: actions/upload-artifact@v3 with: name: release-${{ matrix.os }} @@ -119,14 +118,13 @@ jobs: target: ${{ matrix.target }} profile: minimal - name: Build - uses: actions-rs/cargo@v2 - with: - command: build - args: --release --all-features --target=${{ matrix.target }} + run: | + cargo build --release --all-features --target=${TARGET} env: # Retarget pkg-config as described in https://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/ PKG_CONFIG_ALLOW_CROSS: 1 PKG_CONFIG_LIBDIR: /usr/lib/${{ matrix.pkgconfig }}/pkgconfig + TARGET: ${{ matrix.target }} - uses: actions/upload-artifact@v3 with: name: release-${{ matrix.arch }}-buster