From 6b2172d873a0c73bbd837391ec7001ccc1a88391 Mon Sep 17 00:00:00 2001 From: GyDi <segydi@foxmail.com> Date: Sun, 16 Jan 2022 14:30:49 +0800 Subject: [PATCH] fix: ci strategy --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cdedde..1f0e8c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,14 +6,13 @@ env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: short -strategy: - matrix: - platform: [windows-latest, macos-11] - jobs: # only cargo test now test: - runs-on: ${{ matrix.platform }} + strategy: + matrix: + os: [windows-latest, macos-11] + runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -35,7 +34,10 @@ jobs: working-directory: ./src-tauri release: - runs-on: ${{ matrix.platform }} + strategy: + matrix: + os: [windows-latest, macos-11] + runs-on: ${{ matrix.os }} if: | startsWith(github.repository, 'zzzgydi') && startsWith(github.ref, 'refs/tags/v') -- GitLab