-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (54 loc) · 1.46 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
58
59
60
name: 🚀 Build
on:
# Manual trigger build
workflow_dispatch:
inputs:
target:
description: Build target
required: false
default: 'all'
type: choice
options:
- all
- macos:x64
- macos:arm64
- linux:x64
- windows:x64
environment:
description: Environment to run build
type: environment
default: 'staging'
required: false
# Called for Release workflows
workflow_call:
inputs:
environment:
description: Environment to run build
type: string
default: 'staging'
required: false
target:
description: Build target
type: string
default: 'all'
required: false
jobs:
build-linux:
if: startsWith(inputs.target, 'linux') || endsWith(inputs.target, 'all')
uses: ./.github/workflows/pipeline-build-linux.yml
secrets: inherit
with:
environment: ${{ inputs.environment }}
build-macos:
if: startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all')
uses: ./.github/workflows/pipeline-build-macos.yml
secrets: inherit
with:
environment: ${{ inputs.environment }}
target: ${{ inputs.target }}
build-windows:
if: startsWith(inputs.target, 'windows') || endsWith(inputs.target, 'all')
uses: ./.github/workflows/pipeline-build-windows.yml
secrets: inherit
with:
environment: ${{ inputs.environment }}