Skip to content

Commit ad97ba5

Browse files
committed
github: use central CI workflows
Use GitHub workflow_call feature to reduce workflow duplication. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
1 parent a52904a commit ad97ba5

File tree

5 files changed

+42
-160
lines changed

5 files changed

+42
-160
lines changed

.github/workflows/hw-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024, Proofcraft Pty Ltd
2+
#
3+
# SPDX-License-Identifier: BSD-2-Clause
4+
5+
# sel4test and sel4bench hardware builds and runs
6+
#
7+
# See sel4test-hw/builds.yml and sel4bench-hw/builds.yml in the repo
8+
# seL4/ci-actions for configs.
9+
10+
name: HW
11+
12+
on:
13+
# needs PR target for secrets access; guard by requiring label
14+
pull_request_target:
15+
types: [synchronize, labeled]
16+
17+
jobs:
18+
sel4test:
19+
name: seL4Test
20+
uses: seL4/ci-actions/.github/workflows/sel4test-hw.yml@master
21+
secrets: inherit
22+
23+
sel4bench:
24+
name: seL4Bench
25+
uses: seL4/ci-actions/.github/workflows/sel4bench-hw.yml@master
26+
secrets: inherit

.github/workflows/pr.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
1+
# Copyright 2025, Proofcraft Pty Ltd
22
#
33
# SPDX-License-Identifier: BSD-2-Clause
44

55
# Actions to run on pull requests
66

77
name: PR
88

9-
on: [pull_request]
9+
on: [pull_request, workflow_dispatch]
1010

1111
jobs:
12-
gitlint:
13-
name: Gitlint
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: seL4/ci-actions/gitlint@master
17-
18-
whitespace:
19-
name: 'Trailing Whitespace'
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: seL4/ci-actions/git-diff-check@master
23-
24-
shell:
25-
name: 'Portable Shell'
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: seL4/ci-actions/bashisms@master
12+
pr-checks:
13+
name: Checks
14+
uses: seL4/ci-actions/.github/workflows/pr.yml@master

.github/workflows/push.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,9 @@ on:
1010
branches:
1111
- master
1212
pull_request:
13+
workflow_dispatch:
1314

1415
jobs:
15-
check:
16-
name: License Check
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: seL4/ci-actions/license-check@master
20-
21-
links:
22-
name: Links
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: seL4/ci-actions/link-check@master
26-
with:
27-
exclude: js/node_modules
28-
29-
style:
30-
name: Style
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: seL4/ci-actions/style@master
16+
checks:
17+
name: Checks
18+
uses: seL4/ci-actions/.github/workflows/push.yml@master

.github/workflows/sel4test-hw.yml

Lines changed: 0 additions & 101 deletions
This file was deleted.

.github/workflows/sel4test-sim.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,13 @@
99
name: seL4Test
1010

1111
on:
12-
push:
13-
branches: [master]
1412
pull_request:
15-
16-
# Cancel older runs of this workflow that are still not finished for the
17-
# current PR. This reduces the CI load. For deployment to the master branch,
18-
# the workflow will run on each push, but no cancellation happens here.
19-
concurrency:
20-
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('run-{0}', github.run_id) }}
21-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
13+
paths-ignore:
14+
- 'LICENSES/**'
15+
- '*.md'
16+
workflow_dispatch:
2217

2318
jobs:
24-
simulation:
25-
name: Simulation
26-
runs-on: ubuntu-latest
27-
strategy:
28-
matrix:
29-
march: [armv7a, armv8a, nehalem, rv32imac, rv64imac]
30-
compiler: [gcc, clang]
31-
steps:
32-
- uses: seL4/ci-actions/sel4test-sim@master
33-
with:
34-
march: ${{ matrix.march }}
35-
compiler: ${{ matrix.compiler }}
19+
sim:
20+
name: Sim
21+
uses: seL4/ci-actions/.github/workflows/sel4test-sim.yml@master

0 commit comments

Comments
 (0)