-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 926 Bytes
/
main.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
name: Main Workflow
on:
push: { branches: [ "main" ] }
pull_request: { branches: [ "main" ] }
workflow_dispatch:
jobs:
base:
name: Build Base
uses: ./.github/workflows/_build_base.yml
with: { safe-checkout: '${{ github.sha }}' }
cxx:
name: Build C++
needs: base
uses: ./.github/workflows/_build_cxx.yml
with: { safe-checkout: '${{ github.sha }}' }
secrets: inherit
go:
name: Build Go
needs: base
uses: ./.github/workflows/_build_go.yml
with: { safe-checkout: '${{ github.sha }}' }
secrets: inherit
rust:
name: Build Rust
needs: base
uses: ./.github/workflows/_build_rust.yml
with: { safe-checkout: '${{ github.sha }}' }
secrets: inherit
built:
name: Built
needs: [ cxx, go, rust ]
uses: ./.github/workflows/_empty.yml
test:
name: Run Tests
needs: built
secrets: inherit
uses: ./.github/workflows/_test.yml