Skip to content

Commit 2567af1

Browse files
authored
Merge pull request #138 from JuliaLinearAlgebra/jb/skipduplicate
skip duplicate CI runs, and cancel concurrent
2 parents 51b7289 + dc5cb30 commit 2567af1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
11
name: CI
2+
3+
concurrency:
4+
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
5+
cancel-in-progress: true
6+
27
on:
38
push:
49
branches:
510
- master
611
pull_request:
12+
713
jobs:
14+
pre_job:
15+
# continue-on-error: true # Uncomment once integration is finished
16+
runs-on: ubuntu-latest
17+
# Map a step output to a job output
18+
outputs:
19+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
20+
steps:
21+
- id: skip_check
22+
uses: fkirc/skip-duplicate-actions@v5
823
test:
24+
needs: pre_job
25+
if: needs.pre_job.outputs.should_skip != 'true'
926
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1027
runs-on: ${{ matrix.os }}
1128
strategy:

0 commit comments

Comments
 (0)