File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 50
50
if : matrix.rust == 'nightly'
51
51
52
52
- 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
54
56
55
57
- uses : Swatinem/rust-cache@v2
56
58
65
67
if : matrix.rust == 'nightly'
66
68
67
69
- 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
69
71
70
72
- run : cargo build
71
73
- run : cargo build --no-default-features
You can’t perform that action at this time.
0 commit comments