Fix concurrency key in GitHub Actions.

Use matrix configuration in concurrency key.
This commit is contained in:
Dan Zheng 2024-02-24 11:12:37 -08:00
parent 74b27074e1
commit c08de58e6a
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
name: Build name: build
# Trigger on push, pull request, or via manual dispatch. # Trigger on push, pull request, or via manual dispatch.
on: [push, pull_request, workflow_dispatch] on: [push, pull_request, workflow_dispatch]
jobs: jobs:
build: build:
runs-on: ${{matrix.os}} runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.type }} name: ${{ matrix.os }} ${{ matrix.type }}
timeout-minutes: 30 timeout-minutes: 30
@ -16,7 +16,7 @@ jobs:
os: ['ubuntu-latest', 'macos-latest'] os: ['ubuntu-latest', 'macos-latest']
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}
cancel-in-progress: true cancel-in-progress: true
steps: steps: