-
Notifications
You must be signed in to change notification settings - Fork 3
122 lines (111 loc) · 3.27 KB
/
~reusable-full-build.yml
File metadata and controls
122 lines (111 loc) · 3.27 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
on:
workflow_call:
inputs:
# Caching
use-skia-cache:
type: boolean
description: Use Skia Binary from cache
required: true
# Versioning
is-release-build:
type: boolean
description: Whether the version is a prerelease or full release
required: false
env:
IS_RELEASE_BUILD: ${{ inputs.is-release-build }}
jobs:
nuke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9'
- run: dotnet publish --configuration Debug ./build/_build.csproj
shell: bash
- uses: actions/upload-artifact@v4
with:
name: nuke
path: build/bin/Debug/publish/
#
# Native Libs
windows:
needs: [nuke]
uses: ./.github/workflows/~native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: windows-latest
target-os: windows
architectures: '[ "x64", "x86", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'
linux:
needs: [nuke]
uses: ./.github/workflows/~native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: ubuntu-latest
target-os: linux
architectures: '[ "x64", "x86", "arm", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'
macos:
needs: [nuke]
uses: ./.github/workflows/~native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: macos-latest
target-os: macos
architectures: '[ "x64", "arm64" ]'
variants: '[ "shared" , "jni", "node" ]'
android:
needs: [nuke]
uses: ./.github/workflows/~native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: ubuntu-latest
target-os: android
architectures: '[ "x64", "x86", "arm", "arm64" ]'
variants: '[ "shared" , "jni" ]'
ios:
needs: [nuke]
uses: ./.github/workflows/~native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: macos-latest
target-os: ios
architectures: '[ "arm64" ]'
variants: '[ "shared" ]'
iossimulator:
needs: [nuke]
uses: ./.github/workflows/~native.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
is-release-build: ${{ inputs.is-release-build }}
runs-on: macos-latest
target-os: iossimulator
architectures: '[ "arm64", "x64" ]'
variants: '[ "shared" ]'
#
# Libraries
dotnet:
needs: [windows, linux, android, macos, ios, iossimulator]
uses: ./.github/workflows/~dotnet.yml
secrets: inherit
with:
is-release-build: ${{ inputs.is-release-build }}
java:
needs: [windows, linux, android, macos]
secrets: inherit
uses: ./.github/workflows/~java.yml
with:
is-release-build: ${{ inputs.is-release-build }}
node:
needs: [windows, linux, macos]
secrets: inherit
uses: ./.github/workflows/~node.yml
with:
is-release-build: ${{ inputs.is-release-build }}