From c08de58e6a58f685d84c9112ca2e74d354ecee77 Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Sat, 24 Feb 2024 11:12:37 -0800 Subject: [PATCH] Fix concurrency key in GitHub Actions. Use matrix configuration in concurrency key. --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bea9e5..da63c1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,11 @@ -name: Build +name: build # Trigger on push, pull request, or via manual dispatch. on: [push, pull_request, workflow_dispatch] jobs: build: - runs-on: ${{matrix.os}} + runs-on: ${{ matrix.os }} name: ${{ matrix.os }} ${{ matrix.type }} timeout-minutes: 30 @@ -16,7 +16,7 @@ jobs: os: ['ubuntu-latest', 'macos-latest'] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }} cancel-in-progress: true steps: