-
-
Notifications
You must be signed in to change notification settings - Fork 8
137 lines (128 loc) · 4.39 KB
/
main.yml
File metadata and controls
137 lines (128 loc) · 4.39 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Main
on: workflow_dispatch
jobs:
Build:
name: ${{ matrix.name }}
uses: ./.github/workflows/build.yml
strategy:
matrix:
include:
- name: Windows i686
os: windows-2025
buildArgs: "windows -32 -D HXCPP_M32"
assetType: BC
artifactName: windowsBuild-i686
artifactPath: export\release\windows\bin\*
- name: Windows x86_64
os: windows-2025
buildArgs: "windows -64 -D HXCPP_M64"
assetType: BC
artifactName: windowsBuild-x86_64
artifactPath: export\release\windows\bin\*
- name: Windows ARM64
os: windows-2025
buildArgs: "windows -arm64 -D HXCPP_ARM64"
assetType: ASTC
artifactName: windowsBuild-arm64
artifactPath: export\release\windows\bin\*
- name: Linux i686
os: ubuntu-22.04
buildArgs: "linux -32 -D HXCPP_M32"
assetType: BC
artifactName: linuxBuild-i686
artifactPath: export/release/linux/bin/*
- name: Linux x86_64
os: ubuntu-22.04
buildArgs: "linux -64 -D HXCPP_M64"
assetType: BC
artifactName: linuxBuild-x86_64
artifactPath: export/release/linux/bin/*
- name: Linux ARMV7
os: ubuntu-22.04-arm
buildArgs: "linux -armv7 -D HXCPP_ARMV7"
assetType: ASTC
artifactName: linuxBuild-armv7
artifactPath: export/release/linux/bin/*
- name: Linux ARM64
os: ubuntu-22.04-arm
buildArgs: "linux -arm64 -D HXCPP_ARM64"
assetType: ASTC
artifactName: linuxBuild-arm64
artifactPath: export/release/linux/bin/*
- name: Android
os: macos-26
buildArgs: "android -ONLY_ARM64"
assetType: ASTC
artifactName: androidBuild
artifactPath: "export/release/android/bin/app/build/outputs/apk/release/*.apk"
- name: iOS
os: macos-15
buildArgs: "ios -nosign"
assetType: ASTC
artifactName: iOSBuild
artifactPath: "export/release/ios/build/Release-iphoneos/*.ipa"
secrets:
SE_KEYSTORE_FILE: ${{ secrets.SE_KEYSTORE_FILE }}
SE_KEYSTORE_INFO_FILE: ${{ secrets.SE_KEYSTORE_INFO_FILE }}
with:
name: ${{ matrix.name }}
os: ${{ matrix.os }}
buildArgs: ${{ matrix.buildArgs }}
assetType: ${{ matrix.assetType }}
artifactName: ${{ matrix.artifactName }}
artifactPath: ${{ matrix.artifactPath }}
Build-macOS-x86_64:
name: Build (macOS x86_64)
uses: ./.github/workflows/build.yml
with:
name: macOS x86_64
os: macos-15
buildArgs: "mac -64 -D HXCPP_M64"
assetType: BC
artifactName: macOSBuild-x86_64
artifactPath: export/release/macos/bin/*
Build-macOS-ARM64:
name: Build (macOS ARM64)
uses: ./.github/workflows/build.yml
with:
name: macOS ARM64
os: macos-15
buildArgs: "mac -arm64 -D HXCPP_ARM64"
assetType: BC
artifactName: macOSBuild-arm64
artifactPath: export/release/macos/bin/*
macOS-universal:
name: macOS Universal
runs-on: macos-26
needs:
- Build-macOS-x86_64
- Build-macOS-ARM64
steps:
- name: Download x86_64 build
uses: actions/download-artifact@main
with:
name: macOSBuild-x86_64-BC
path: intel
- name: Download ARM64 build
uses: actions/download-artifact@main
with:
name: macOSBuild-arm64-BC
path: arm
- name: Remove ARM64 and x86_64 artifacts
uses: geekyeggo/delete-artifact@main
with:
name: macOSBuild-*
- name: Create Universal App Bundle
shell: bash
run: |
BIN="ShadowEngine.app/Contents/MacOS"
INTEL="intel/ShadowEngine.app/Contents/MacOS"
ARM="arm/ShadowEngine.app/Contents/MacOS"
cp -R intel/ShadowEngine.app ShadowEngine.app
lipo -create "$INTEL/ShadowEngine" "$ARM/ShadowEngine" -output "$BIN/ShadowEngine"
lipo -create "$INTEL/lime.ndll" "$ARM/lime.ndll" -output "$BIN/lime.ndll"
- name: Upload Universal macOS bundle
uses: actions/upload-artifact@main
with:
name: macOSBuild-Universal-BC
path: ShadowEngine.app