Skip to content

Commit

Permalink
CI: using the bash shell to setup cargo cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
miles170 committed Nov 14, 2022
1 parent b389f41 commit fdab5da
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,13 @@ jobs:
rustc -V
- name: Set cargo cmd
run: |
echo "CARGO_CMD=cargo" >> $GITHUB_ENV
echo "CARGO_CMD=cargo" >> $Env:GITHUB_ENV
shell: bash
run: echo "CARGO_CMD=cargo" >> $GITHUB_ENV

- name: Set cargo cmd to cross
shell: bash
if: ${{ matrix.job.use-cross == true }}
run: |
echo "CARGO_CMD=cross" >> $GITHUB_ENV
echo "CARGO_CMD=cross" >> $Env:GITHUB_ENV
run: echo "CARGO_CMD=cross" >> $GITHUB_ENV

- name: Rust cache
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit fdab5da

Please sign in to comment.