Skip to content

Commit

Permalink
ci: fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 29, 2024
1 parent 42a17cf commit a842bd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit a842bd1

Please sign in to comment.