Add rustflag directly

This commit is contained in:
QuantumEntangledAndy committed 2023-05-03 15:15:37 +07:00
1 parent 359597131e
commit fd3282efe2
1 file changed
+1 -2
+1 -2
View File
@@ -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