File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,20 +53,22 @@ jobs:
5353 target : ${{ matrix.target }}
5454
5555 - name : Build
56+ shell : pwsh
5657 run : |
57- if [ "${{ matrix.toolchain }}" = " stable" ]; then
58- cargo build --target ${{ matrix.target }} --no-default-features
59- else
60- cargo build --target ${{ matrix.target }} --all-features
61- fi
58+ if ($env:MATRIX_TOOLCHAIN -eq " stable") {
59+ cargo build --target $env:MATRIX_TARGET --no-default-features
60+ } else {
61+ cargo build --target $env:MATRIX_TARGET --all-features
62+ }
6263
6364 - name : Test
65+ shell : pwsh
6466 run : |
65- if [ "${{ matrix.toolchain }}" = " stable" ]; then
66- cargo test --target ${{ matrix.target }} --no-default-features
67- else
68- cargo test --target ${{ matrix.target }} --all-features
69- fi
67+ if ($env:MATRIX_TOOLCHAIN -eq " stable") {
68+ cargo test --target $env:MATRIX_TARGET --no-default-features
69+ } else {
70+ cargo test --target $env:MATRIX_TARGET --all-features
71+ }
7072
7173 documentation :
7274 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments