diff options
author | Miles Liu <miles@bung.cc> | 2022-11-14 09:08:44 +0800 |
---|---|---|
committer | Miles Liu <miles@bung.cc> | 2022-11-14 09:11:09 +0800 |
commit | fdab5da795cd8414062821d7cc5b03189cfb5b89 (patch) | |
tree | 7249e2a775cdafaefebc53cb97930c1e57db9ab9 /.github | |
parent | b389f41cb297dbbe764822233b38b7a31fdcbb96 (diff) |
CI: using the bash shell to setup cargo cmd
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CICD.yml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 7d7a9f1..15d4fc6 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -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 |