From fa256825d6e7e57c3fa8acff285e08cf6c355941 Mon Sep 17 00:00:00 2001 From: PerishCode Date: Wed, 3 Jun 2026 17:23:25 +0800 Subject: [PATCH 1/2] ci: split guard quality and platform tests --- .github/workflows/guard.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/guard.yml b/.github/workflows/guard.yml index a5f25a5..58c3073 100644 --- a/.github/workflows/guard.yml +++ b/.github/workflows/guard.yml @@ -15,13 +15,9 @@ concurrency: cancel-in-progress: true jobs: - guard: - name: guard (${{ matrix.os }}) - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} + quality: + name: quality + runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -40,3 +36,18 @@ jobs: - name: Flavor self-check run: cargo run --locked -p flavor-cli -- check --root . --config flavor.json + + cross-platform-tests: + name: test (${{ matrix.os }}) + strategy: + fail-fast: false + matrix: + os: [windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v6 + + - uses: dtolnay/rust-toolchain@stable + + - name: Test + run: cargo test --locked --workspace From dd6570f32b30c1cef0d6f8af3c938ccd6c2d220e Mon Sep 17 00:00:00 2001 From: PerishCode Date: Wed, 3 Jun 2026 17:28:41 +0800 Subject: [PATCH 2/2] ci: preserve guard check contexts --- .github/workflows/guard.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/guard.yml b/.github/workflows/guard.yml index 58c3073..2955aa5 100644 --- a/.github/workflows/guard.yml +++ b/.github/workflows/guard.yml @@ -16,7 +16,7 @@ concurrency: jobs: quality: - name: quality + name: guard (ubuntu-latest) runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -38,7 +38,7 @@ jobs: run: cargo run --locked -p flavor-cli -- check --root . --config flavor.json cross-platform-tests: - name: test (${{ matrix.os }}) + name: guard (${{ matrix.os }}) strategy: fail-fast: false matrix: