-
-
Notifications
You must be signed in to change notification settings - Fork 13
70 lines (68 loc) · 1.51 KB
/
build-and-test.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
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build And Test
on:
workflow_dispatch:
inputs:
host-os:
required: false
type: choice
options:
- ubuntu-22.04
- ubuntu-20.04
default: ubuntu-22.04
ack:
required: true
type: choice
options:
- '0'
- '1'
arch:
required: true
type: choice
options:
- x86_64
- arm64
version:
required: true
type: string
use-cached:
required: false
type: boolean
default: false
workflow_call:
inputs:
host-os:
required: false
type: string
default: ubuntu-22.04
ack:
required: true
type: string
arch:
required: true
type: string
version:
required: true
type: string
use-cached:
required: false
type: boolean
default: false
jobs:
build:
uses: ./.github/workflows/build.yml
with:
host-os: ${{ inputs.host-os }}
ack: ${{ inputs.ack }}
arch: ${{ inputs.arch }}
version: ${{ inputs.version }}
use-cached: ${{ inputs.use-cached }}
test:
uses: ./.github/workflows/test.yml
needs: build
with:
ack: ${{ inputs.ack }}
arch: ${{ inputs.arch }}
version: ${{ inputs.version }}
artifact-dir: ${{ needs.build.outputs.artifact-dir }}
kernel-image-name: ${{ needs.build.outputs.kernel-image-name }}
suffix: ${{ needs.build.outputs.suffix }}