From a842bd1812372b5d1a2b22daa0bd9b2d5cc230b9 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:12:41 +0200 Subject: [PATCH] ci: fix env --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81f0c40..6c05e38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,9 @@ jobs: if: matrix.rust == 'nightly' - name: Enable target feature - run: echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=+${{ matrix.target.feature }} >> $GITHUB_ENV + run: | + echo RUSTFLAGS_BAK=$RUSTFLAGS >> $GITHUB_ENV + echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=+${{ matrix.target.feature }} >> $GITHUB_ENV - uses: Swatinem/rust-cache@v2 @@ -65,7 +67,7 @@ jobs: if: matrix.rust == 'nightly' - name: Disable target feature - run: echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=-${{ matrix.target.feature }} >> $GITHUB_ENV + run: echo RUSTFLAGS=${RUSTFLAGS_BAK}\ -Ctarget-feature=-${{ matrix.target.feature }} >> $GITHUB_ENV - run: cargo build - run: cargo build --no-default-features