diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a34024ce..6a60e499 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -64,13 +64,10 @@ jobs: fail-fast: false matrix: rust: - - toolchain: "stable" - optional: false - - toolchain: "beta" - optional: true - - toolchain: "nightly" - optional: true - continue-on-error: ${{ matrix.rust.optional }} + - "stable" + - "beta" + - "nightly" + name: "Developer build (Rust ${{ matrix.rust }})" runs-on: "lab" timeout-minutes: 45 steps: @@ -83,7 +80,7 @@ jobs: - name: "install rust" uses: "dtolnay/rust-toolchain@stable" with: - toolchain: "${{ matrix.rust.toolchain }}" + toolchain: "${{ matrix.rust }}" targets: "x86_64-unknown-linux-gnu,x86_64-unknown-linux-musl" - name: "Checkout" uses: "actions/checkout@v4" @@ -113,49 +110,41 @@ jobs: just --yes debug=true fake-nix - run: | - just debug=true cargo +${{matrix.rust.toolchain}} build --locked --profile=dev --target=x86_64-unknown-linux-gnu - continue-on-error: ${{ matrix.rust.optional }} - - name: "tests: rust ${{ matrix.rust.toolchain }} profile=dev target=x86_64-unknown-linux-gnu" + just debug=true cargo +${{matrix.rust}} build --locked --profile=dev --target=x86_64-unknown-linux-gnu + - name: "tests: rust ${{ matrix.rust }} profile=dev target=x86_64-unknown-linux-gnu" run: | export GITHUB_STEP_SUMMARY - just debug=true rust=${{matrix.rust.toolchain}} profile=dev target=x86_64-unknown-linux-gnu test - just debug=true rust=${{matrix.rust.toolchain}} profile=dev target=x86_64-unknown-linux-gnu report - continue-on-error: ${{ matrix.rust.optional }} + just debug=true rust=${{matrix.rust}} profile=dev target=x86_64-unknown-linux-gnu test + just debug=true rust=${{matrix.rust}} profile=dev target=x86_64-unknown-linux-gnu report - run: | - just cargo +${{matrix.rust.toolchain}} build --locked --profile=dev --target=x86_64-unknown-linux-musl - continue-on-error: ${{ matrix.rust.optional }} - - name: "tests: rust ${{ matrix.rust.toolchain }} profile=dev target=x86_64-unknown-linux-musl" + just cargo +${{matrix.rust}} build --locked --profile=dev --target=x86_64-unknown-linux-musl + - name: "tests: rust ${{ matrix.rust }} profile=dev target=x86_64-unknown-linux-musl" run: | export GITHUB_STEP_SUMMARY - just debug=true rust=${{matrix.rust.toolchain}} profile=dev target=x86_64-unknown-linux-musl test - just debug=true rust=${{matrix.rust.toolchain}} profile=dev target=x86_64-unknown-linux-musl report - continue-on-error: ${{ matrix.rust.optional }} + just debug=true rust=${{matrix.rust}} profile=dev target=x86_64-unknown-linux-musl test + just debug=true rust=${{matrix.rust}} profile=dev target=x86_64-unknown-linux-musl report - run: | - just debug=true cargo +${{matrix.rust.toolchain}} build --locked --profile=release --target=x86_64-unknown-linux-gnu - continue-on-error: ${{ matrix.rust.optional }} - - name: "tests: rust ${{ matrix.rust.toolchain }} profile=release target=x86_64-unknown-linux-gnu" + just debug=true cargo +${{matrix.rust}} build --locked --profile=release --target=x86_64-unknown-linux-gnu + - name: "tests: rust ${{ matrix.rust }} profile=release target=x86_64-unknown-linux-gnu" run: | export GITHUB_STEP_SUMMARY - just debug=true rust=${{matrix.rust.toolchain}} profile=release target=x86_64-unknown-linux-gnu test - just debug=true rust=${{matrix.rust.toolchain}} profile=release target=x86_64-unknown-linux-gnu report - continue-on-error: ${{ matrix.rust.optional }} + just debug=true rust=${{matrix.rust}} profile=release target=x86_64-unknown-linux-gnu test + just debug=true rust=${{matrix.rust}} profile=release target=x86_64-unknown-linux-gnu report - run: | - just debug=true cargo +${{matrix.rust.toolchain}} build --locked --profile=release --target=x86_64-unknown-linux-musl - continue-on-error: ${{ matrix.rust.optional }} - - name: "tests: rust ${{ matrix.rust.toolchain }} profile=release target=x86_64-unknown-linux-musl" + just debug=true cargo +${{matrix.rust}} build --locked --profile=release --target=x86_64-unknown-linux-musl + - name: "tests: rust ${{ matrix.rust }} profile=release target=x86_64-unknown-linux-musl" run: | export GITHUB_STEP_SUMMARY - just debug=true rust=${{matrix.rust.toolchain}} profile=release target=x86_64-unknown-linux-musl test - just debug=true rust=${{matrix.rust.toolchain}} profile=release target=x86_64-unknown-linux-musl report - continue-on-error: ${{ matrix.rust.optional }} + just debug=true rust=${{matrix.rust}} profile=release target=x86_64-unknown-linux-musl test + just debug=true rust=${{matrix.rust}} profile=release target=x86_64-unknown-linux-musl report - uses: "actions/upload-artifact@v4" if: ${{ always() }} with: - name: "test-results-${{ matrix.rust.toolchain }}" + name: "test-results-${{ matrix.rust }}" path: "target/nextest/" - name: "Setup tmate session for debug" diff --git a/.github/workflows/sterile.yml b/.github/workflows/sterile.yml index c1cb12b6..c45234f9 100644 --- a/.github/workflows/sterile.yml +++ b/.github/workflows/sterile.yml @@ -58,6 +58,7 @@ jobs: rust: - "stable" - "nightly" + name: "Sterile test run (Rust ${{ matrix.rust }})" steps: - name: "login to ghcr.io" uses: "docker/login-action@v3" @@ -178,6 +179,7 @@ jobs: rust: - "stable" - "nightly" + name: "Push containers (Rust ${{ matrix.rust }})" steps: - name: "login to ghcr.io" uses: "docker/login-action@v3"