Skip to content

Commit 6b9f394

Browse files
authored
Create android.yml
# Ti# This is a basic workflow to help you get started with Actions name: Android Build CI # Controls when the workflow will run on: [workflow_dispatch] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - uses: krdlab/setup-haxe@v1 with: haxe-version: 4.2.3 - name: Cache haxelib path uses: actions/cache@v2 with: path: | %HAXELIB_ROOT% key: ${{ runner.os }}-android - name: Setup Android SDK Tools uses: android-actions/setup-android@v2.0.2 - name: Setup Java JDK uses: actions/setup-java@v2.3.1 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '11' - uses: nttld/setup-ndk@v1 with: ndk-version: r15c # Runs a set of commands using the runners shell - name: script run line haha run: | mkdir -p "%HAXELIB_ROOT%" haxelib setup "%HAXELIB_ROOT%" haxelib install lime 7.9.0 --quiet haxelib install openfl --quiet haxelib install flixel 4.9.0 --quiet haxelib run lime setup haxelib run lime config ANDROID_SDK $ANDROID_SDK_ROOT haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_ROOT haxelib run lime config JAVA_HOME $JAVA_HOME haxelib run lime config ANDROID_SETUP true
1 parent dda491a commit 6b9f394

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Android Build CI
4+
5+
# Controls when the workflow will run
6+
on: [workflow_dispatch]
7+
8+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9+
jobs:
10+
# This workflow contains a single job called "build"
11+
build:
12+
# The type of runner that the job will run on
13+
runs-on: ubuntu-latest
14+
15+
# Steps represent a sequence of tasks that will be executed as part of the job
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18+
- uses: actions/checkout@v2
19+
- uses: krdlab/setup-haxe@v1
20+
with:
21+
haxe-version: 4.2.3
22+
23+
- name: Cache haxelib path
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
%HAXELIB_ROOT%
28+
key: ${{ runner.os }}-android
29+
30+
- name: Setup Android SDK Tools
31+
uses: android-actions/setup-android@v2.0.2
32+
33+
- name: Setup Java JDK
34+
uses: actions/setup-java@v2.3.1
35+
with:
36+
distribution: 'zulu' # See 'Supported distributions' for available options
37+
java-version: '11'
38+
39+
- uses: nttld/setup-ndk@v1
40+
with:
41+
ndk-version: r15c
42+
43+
# Runs a set of commands using the runners shell
44+
- name: script run line haha
45+
run: |
46+
mkdir -p "%HAXELIB_ROOT%"
47+
haxelib setup "%HAXELIB_ROOT%"
48+
haxelib install lime 7.9.0 --quiet
49+
haxelib install openfl --quiet
50+
haxelib install flixel 4.9.0 --quiet
51+
haxelib run lime setup
52+
haxelib run lime config ANDROID_SDK $ANDROID_SDK_ROOT
53+
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_ROOT
54+
haxelib run lime config JAVA_HOME $JAVA_HOME
55+
haxelib run lime config ANDROID_SETUP true
56+
haxelib install flixel-tools --quiet
57+
haxelib install flixel-ui --quiet
58+
haxelib install hscript --quiet
59+
haxelib install flixel-addons 2.10.0
60+
haxelib git faxe https://github.com/uhrobots/faxe --quiet
61+
haxelib git polymod https://github.com/MasterEric/polymod.git --quiet
62+
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc --quiet
63+
haxelib git extension-webm https://github.com/luckydog7/extension-webm --quiet
64+
haxelib git linc_luajit https://github.com/MasterEric/linc_luajit.git --quiet
65+
haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit.git --quiet
66+
haxelib install actuate
67+
haxelib list
68+
haxelib run lime build android
69+
70+
- uses: actions/upload-artifact@v2
71+
with:
72+
name: Android Build
73+
path: export/release/android/bin/app/build/outputs/apk/debug

0 commit comments

Comments
 (0)