CI: using the bash shell to setup cargo cmd

This commit is contained in:
Miles Liu 2022-11-14 09:08:44 +08:00
parent b389f41cb2
commit fdab5da795
No known key found for this signature in database
GPG Key ID: 4DB9B32F9B24A7A9
1 changed files with 4 additions and 6 deletions

View File

@ -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