-
Notifications
You must be signed in to change notification settings - Fork 37
59 lines (57 loc) · 1.91 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Main
on:
push:
branches: [master, master-dev]
pull_request:
branches: [master, master-dev]
workflow_dispatch:
jobs:
Build:
name: ${{ matrix.name }}
strategy:
matrix:
include:
- name: Windows
os: windows-2022
buildArgs: windows
artifactName: P-Slice.1.0.windows
setupScript: .\"setup/windows.bat"
artifactPath: export\release\windows\bin\*
- name: Linux
os: ubuntu-22.04
buildArgs: linux
setupScript: sh ./setup/unix.sh
artifactName: P-Slice.1.0.linux
artifactPath: export/release/linux/bin/*
- name: macOS x86_64
os: macos-13
buildArgs: mac
setupScript: sh ./setup/unix.sh
artifactName: P-Slice.1.0.macosx64
artifactPath: export/release/macos/bin/*
- name: macOS AArch64
os: macos-15
buildArgs: mac
setupScript: sh ./setup/mobile.sh
artifactName: P-Slice.1.0.macosarm64
artifactPath: export/release/macos/bin/*
- name: Android
os: macos-14
buildArgs: "android -ONLY_ARMV7"
setupScript: sh ./setup/mobile.sh
artifactName: P-Slice.1.0.android
artifactPath: "export/release/android/bin/app/build/outputs/apk/release/*.apk"
- name: iOS
os: macos-15
buildArgs: "ios -nosign"
setupScript: sh ./setup/mobile.sh
artifactName: P-Slice.1.0.ios
artifactPath: "export/release/ios/build/Release-iphoneos/*.ipa"
uses: ./.github/workflows/build.yml
with:
name: ${{ matrix.name }}
os: ${{ matrix.os }}
buildArgs: ${{ matrix.buildArgs }}
setupScript: ${{ matrix.setupScript }}
artifactName: ${{ matrix.artifactName }}
artifactPath: ${{ matrix.artifactPath }}