-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.58 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
name: Build ESBMC
on:
# Sadly, there is no way to share the inputs between workflow_dispatch and workflow_call
workflow_dispatch:
inputs:
operating-system:
description: "Targeted OS (e.g. ubuntu-latest, windows-latest)"
required: true
type: string
build-flags:
description: "Flags to be passed to build.sh script"
required: true
type: string
testing:
description: "Whether to run tests (regression) for this build"
required: true
type: boolean
workflow_call:
inputs:
operating-system:
description: "Targeted OS (e.g. ubuntu-latest, windows-latest)"
required: true
type: string
build-flags:
description: "Flags to be passed to build.sh script"
required: true
type: string
testing:
description: "Whether to run tests (regression) for this build"
required: true
type: boolean
jobs:
build-unix:
if: ${{ !startsWith(inputs.operating-system, 'windows-') }}
uses: ./.github/workflows/build-unix.yml
with:
operating-system: ${{ inputs.operating-system }}
build-flags: ${{ inputs.build-flags }}
testing: ${{ inputs.testing }}
build-windows:
if: ${{ startsWith(inputs.operating-system, 'windows-') }}
uses: ./.github/workflows/build-windows.yml
with:
operating-system: ${{ inputs.operating-system }}
build-flags: ${{ inputs.build-flags }}
testing: ${{ inputs.testing }}