Skip to content

Commit cc9d034

Browse files
committed
ci: don't fail fast
1 parent 62f24f6 commit cc9d034

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/rust.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616
jobs:
1717
test-build:
1818
strategy:
19+
fail-fast: false
1920
matrix:
2021
include:
2122
- { os: "macos-latest", target: "aarch64-apple-darwin" }
@@ -30,14 +31,16 @@ jobs:
3031
runs-on: ${{ matrix.os }}
3132

3233
steps:
34+
- uses: actions/checkout@v4
35+
3336
- name: Setup sccache
3437
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
3538
uses: mozilla-actions/sccache-action@v0.0.8
3639
- name: Configure sccache
3740
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
3841
run: |
39-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
40-
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
42+
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
43+
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"
4144
4245
- name: Setup rust cache action
4346
uses: swatinem/rust-cache@v2
@@ -51,7 +54,6 @@ jobs:
5154
packages: libfontconfig1-dev libgoogle-perftools-dev google-perftools
5255
version: latest # could be anything
5356

54-
- uses: actions/checkout@v4
5557
- name: Install clippy and fmt
5658
run: rustup component add clippy rustfmt
5759
- name: Clippy
@@ -65,7 +67,7 @@ jobs:
6567

6668
- name: Set build mode
6769
shell: bash
68-
run: if [ "${{github.ref_type}}" == "tag" || ${{ github.event_name == 'push' && github.ref_name == 'main' }} ]; then echo "BMODE=release">>"$GITHUB_ENV"; fi
70+
run: if [ "${{github.ref_type}}" == "tag" ] || [ ${{ github.event_name == 'push' && github.ref_name == 'main' }} ]; then echo "BMODE=release">>"$GITHUB_ENV"; fi
6971

7072
- name: Build in ${{env.BMODE || 'debug'}} mode
7173
run: cargo build --verbose --locked --${{env.BMODE}}

0 commit comments

Comments
 (0)