Skip to content

Commit a842bd1

Browse files
committed
ci: fix env
1 parent 42a17cf commit a842bd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ jobs:
5050
if: matrix.rust == 'nightly'
5151

5252
- name: Enable target feature
53-
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=+${{ matrix.target.feature }} >> $GITHUB_ENV
53+
run: |
54+
echo RUSTFLAGS_BAK=$RUSTFLAGS >> $GITHUB_ENV
55+
echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=+${{ matrix.target.feature }} >> $GITHUB_ENV
5456
5557
- uses: Swatinem/rust-cache@v2
5658

@@ -65,7 +67,7 @@ jobs:
6567
if: matrix.rust == 'nightly'
6668

6769
- name: Disable target feature
68-
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Ctarget-feature=-${{ matrix.target.feature }} >> $GITHUB_ENV
70+
run: echo RUSTFLAGS=${RUSTFLAGS_BAK}\ -Ctarget-feature=-${{ matrix.target.feature }} >> $GITHUB_ENV
6971

7072
- run: cargo build
7173
- run: cargo build --no-default-features

0 commit comments

Comments
 (0)