From fd3282efe2deea947793b3cf22e3b547af0f072f Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Wed, 3 May 2023 15:15:37 +0700 Subject: [PATCH] Add rustflag directly --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c595c3..30a68ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -144,13 +144,12 @@ jobs: TARGET: ${{ matrix.target }} - name: Build run: | - cargo build --release --all-features --target=${TARGET} + RUSTFLAGS="--cfg tokio_unstable" 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 }} - RUSTFLAGS: "--cfg tokio_unstable" - uses: actions/upload-artifact@v3 with: name: release-${{ matrix.arch }}-bullseye