From e28ab1b7a9359b5509fb16d301283573811c9880 Mon Sep 17 00:00:00 2001 From: Itsusinn Date: Sat, 21 Sep 2024 12:41:12 +0800 Subject: [PATCH] Revert "fix" This reverts commit 6f4748430f12a85f4c37fbf78c73bebbf9816f39. --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8850635c9..6e9d3e965 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -214,9 +214,6 @@ jobs: run: | echo "CLASH_GIT_REF=${GITHUB_REF}" >> $GITHUB_ENV echo "CLASH_GIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV - echo "RUSTFLAGS=${RUSTFLAGS}" >> $GITHUB_ENV - env: - RUSTFLAGS: ${{ matrix.rustflags || '--cfg tokio_unstable' }} - name: Cargo fmt uses: clechasseur/rs-cargo@v2 @@ -242,6 +239,7 @@ jobs: env: CROSS_CONTAINER_OPTS: "--network host" CLASH_DOCKER_TEST: "true" + RUSTFLAGS: ${{ matrix.rustflags || '--cfg tokio_unstable' }} - name: Cargo test (no docker test on windows-non-arm and macos) uses: clechasseur/rs-cargo@v2 @@ -250,6 +248,8 @@ jobs: use-cross: ${{ matrix.cross }} command: test args: --all --target ${{ matrix.target }} ${{ matrix.extra-args }} + env: + RUSTFLAGS: ${{ matrix.rustflags || '--cfg tokio_unstable' }} - name: Cargo build uses: clechasseur/rs-cargo@v2 @@ -257,6 +257,8 @@ jobs: use-cross: ${{ matrix.cross }} command: build args: --release --target ${{ matrix.target }} ${{ matrix.extra-args }} + env: + RUSTFLAGS: ${{ matrix.rustflags || '--cfg tokio_unstable' }} - name: Rename binary run: mv target/${{ matrix.target }}/release/clash-rs${{ matrix.postfix }} ${{ env.PACKAGE }}-${{ matrix.release-name || matrix.target }}${{ matrix.postfix }}