Skip to content

Commit 26125a0

Browse files
authored
Concurrency for build job (#4997)
1 parent d0b991f commit 26125a0

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/haskell-linux.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,29 @@ jobs:
2525
# current ref from: 27.02.2022
2626
SECP256K1_REF: ac83be33d0956faf6b7f61a60ab524ef7d6a473a
2727

28+
concurrency:
29+
group: >
30+
a+${{ github.event_name }}
31+
b+${{ github.workflow_ref }}
32+
c+${{ github.job }}
33+
d+${{ matrix.ghc }}
34+
e+${{ matrix.cabal }}
35+
f+${{ matrix.os }}
36+
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
37+
cancel-in-progress: true
2838

2939
steps:
40+
- name: Concurrency group
41+
run: >
42+
echo
43+
a+${{ github.event_name }}
44+
b+${{ github.workflow_ref }}
45+
c+${{ github.job }}
46+
d+${{ matrix.ghc }}
47+
e+${{ matrix.cabal }}
48+
f+${{ matrix.os }}
49+
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
50+
3051
- name: Workaround runner image issue
3152
# https://github.com/actions/runner-images/issues/7061
3253
run: sudo chown -R $USER /usr/local/.ghcup

.github/workflows/haskell.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,29 @@ jobs:
2525
# current ref from: 27.02.2022
2626
SECP256K1_REF: ac83be33d0956faf6b7f61a60ab524ef7d6a473a
2727

28+
concurrency:
29+
group: >
30+
a+${{ github.event_name }}
31+
b+${{ github.workflow_ref }}
32+
c+${{ github.job }}
33+
d+${{ matrix.ghc }}
34+
e+${{ matrix.cabal }}
35+
f+${{ matrix.os }}
36+
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
37+
cancel-in-progress: true
38+
2839
steps:
40+
- name: Concurrency group
41+
run: >
42+
echo
43+
a+${{ github.event_name }}
44+
b+${{ github.workflow_ref }}
45+
c+${{ github.job }}
46+
d+${{ matrix.ghc }}
47+
e+${{ matrix.cabal }}
48+
f+${{ matrix.os }}
49+
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
50+
2951
- name: Install Haskell
3052
uses: input-output-hk/setup-haskell@v1
3153
id: setup-haskell

0 commit comments

Comments
 (0)