forked from Snirozu/Funkin-Psych-Online
-
Notifications
You must be signed in to change notification settings - Fork 6
72 lines (62 loc) · 1.73 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
61
62
63
64
65
66
67
68
69
70
71
72
name: Build
on:
workflow_call:
inputs:
name:
required: true
type: string
os:
required: true
type: string
buildArgs:
required: true
type: string
artifactName:
required: true
type: string
artifactPath:
required: true
type: string
env:
HAXE_VERSION: 4.3.6
PROJECT_NAME: PsychOnline
jobs:
build:
name: Build
runs-on: ${{ inputs.os }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Install libVLC
if: inputs.name == 'Linux'
run: sudo apt install libvlc-dev libvlccore-dev
- name: Install Libraries
run: |
haxelib install hmm --quiet
haxelib run hmm install --quiet
- name: Configure Android
if: inputs.name == 'Android'
run: |
haxelib run lime config ANDROID_SDK $ANDROID_HOME
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_LATEST_HOME
haxelib run lime config JAVA_HOME $JAVA_HOME_17_arm64
haxelib run lime config ANDROID_SETUP true
- name: Compile
run: haxelib run lime build ${{ inputs.buildArgs }}
- name: Make IPA
if: inputs.name == 'iOS'
run: |
cd export/release/ios/build/Release-iphoneos
mkdir Payload
mv *.app Payload
zip -r ${{ env.PROJECT_NAME }}.ipa Payload
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: ${{ inputs.artifactName }}
path: ${{ inputs.artifactPath }}
if-no-files-found: error