Skip to content

please die SScript

please die SScript #63

Workflow file for this run

name: Build Mobile
on:
push:
branches: [ek-mobile]
pull_request:
branches: [ek-mobile]
workflow_dispatch:
jobs:
Android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.4
- name: Install Libraries
run: |
haxelib setup ~/haxelib
haxelib install hmm --quiet
haxelib run hmm install --quiet
- name: Configure 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_X64
haxelib run lime config ANDROID_SETUP true
- name: Compile
run: haxelib run lime build android
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: androidBuild
path: export/release/android/bin/app/build/outputs/apk/release/*.apk
if-no-files-found: error
iOS:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.4
- name: Install Libraries
run: |
haxelib setup ~/haxelib
haxelib install hmm --quiet
haxelib run hmm install --quiet
- name: Compile
run: haxelib run lime build ios -nosign -D NOVIDEO
- name: Make Ipa
run: |
cd export/release/ios/build/Release-iphoneos
mkdir Payload
mv *.app Payload
zip -r PsychEngine.ipa Payload
- name: Upload Artifact
if: ${{ success() }}
uses: actions/upload-artifact@main
with:
name: iOSBuild
path: export/release/ios/build/Release-iphoneos/*.ipa
if-no-files-found: error