-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.19 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: build
on:
workflow_call:
inputs:
build_arch:
required: true
type: string
default: 'x86_64'
pull_request:
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
push:
# branches:
# - main
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
workflow_dispatch: ~
permissions:
contents: read
## Concurrency only allowed in the main branch.
## So old builds running for old commits within the same Pull Request are cancelled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build-native:
uses: ./.github/workflows/build-native.yml
setup-build-matrix:
uses: ./.github/workflows/build-arch-matrix-generator.yml
with:
build_arch: ${{ inputs.build_arch }}
build-packages:
needs:
- build-native
uses: ./.github/workflows/build-packages.yml
# The very last job to report whether the Workflow passed.
# This will act as the Branch Protection gatekeeper
ci:
needs:
- build-native
runs-on: ubuntu-latest
steps:
- name: report
run: echo "CI workflow passed"