Skip to content

Commit

Permalink
chore: fix shell compatibility for Windows in rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ludndev committed Jul 18, 2024
1 parent d52a59b commit 6c695ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ jobs:

- name: Check if job should be skipped
id: check_skip
shell: pwsh
run: |
if [ "${{ matrix.rust_version }}" != "stable" ] && [ "${{ matrix.rust_version }}" == "${{ needs.pre-job.outputs.stable_version }}" ]; then
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "skip=false" >> $GITHUB_OUTPUT
fi
if (("${{ matrix.rust_version }}" -ne "stable") -and ("${{ matrix.rust_version }}" -eq "${{ needs.pre-job.outputs.stable_version }}")) {
echo "skip=true" >> $env:GITHUB_OUTPUT
} else {
echo "skip=false" >> $env:GITHUB_OUTPUT
}
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.check_skip.outputs.skip != 'true'
Expand Down

0 comments on commit 6c695ae

Please sign in to comment.