Skip to content

Commit

Permalink
custom workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Dec 10, 2024
1 parent 42adf86 commit 7e499b0
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 800 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Android CI
on: workflow_dispatch

env:
HAXE_VERSION: 4.2.5

jobs:
android:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Android NDK
uses: nttld/setup-ndk@main
id: ndk
with:
ndk-version: r21e
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Set HAXEPATH
run: echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib git hxcpp https://github.com/CodenameCrew/cne-hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --quiet
- name: Enable HXCPP compile cache
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
- name: Configure Lime
run: |
haxelib dev lime ${{ github.workspace }}
haxelib run lime config ANDROID_NDK_ROOT ${{ steps.ndk.outputs.ndk-path }}
haxelib run lime config ANDROID_SETUP true
- name: Rebuild Lime
run: |
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_ARMV7
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_ARM64
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_X86
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_X86_64
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Android-NDLL
path: |
ndll/Android/
!**/.gitignore
if-no-files-found: error
38 changes: 38 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: iOS CI
on: workflow_dispatch

env:
HAXE_VERSION: 4.2.5

jobs:
ios:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Set HAXEPATH
run: echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib git hxcpp https://github.com/CodenameCrew/cne-hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --quiet
- name: Enable HXCPP compile cache
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
- name: Configure Lime
run: haxelib dev lime ${{ github.workspace }}
- name: Rebuild Lime
run: |
haxelib run lime rebuild ios -release -nocolor -nocffi -eval
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: iPhone-NDLL
path: |
ndll/iPhone/
!**/.gitignore
if-no-files-found: error
51 changes: 51 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Linux CI
on: workflow_dispatch

env:
HAXE_VERSION: 4.2.5

jobs:
linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib libgl1-mesa-dev libglu1-mesa-dev libpulse-dev libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev libmbedtls-dev libpng-dev libturbojpeg-dev libuv1-dev libvorbis-dev
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Set HAXEPATH
run: echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib git hxcpp https://github.com/CodenameCrew/cne-hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --quiet
- name: Enable HXCPP compile cache
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
- name: Configure Lime
run: haxelib dev lime ${{ github.workspace }}
- name: Rebuild Lime
run: |
haxelib run lime rebuild linux -32 -release -nocolor -nocffi -eval
haxelib run lime rebuild linux -64 -release -nocolor -nocffi -eval
- name: Upload Artifact (x86)
uses: actions/upload-artifact@v3
with:
name: Linux-NDLL
path: |
ndll/Linux/
!**/.gitignore
if-no-files-found: error
- name: Upload Artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Linux64-NDLL
path: |
ndll/Linux64/
!**/.gitignore
if-no-files-found: error
47 changes: 47 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Mac CI
on: workflow_dispatch

env:
HAXE_VERSION: 4.2.5

jobs:
mac:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Set HAXEPATH
run: echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib git hxcpp https://github.com/CodenameCrew/cne-hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --quiet
- name: Enable HXCPP compile cache
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
- name: Configure Lime
run: haxelib dev lime ${{ github.workspace }}
- name: Rebuild Lime
run: |
# haxelib run lime rebuild mac -32 -release -nocolor -nocffi -eval
haxelib run lime rebuild mac -64 -release -nocolor -nocffi -eval
# - name: Upload Artifact (x86)
# uses: actions/upload-artifact@v3
# with:
# name: Mac-NDLL
# path: |
# ndll/Mac/
# !**/.gitignore
# if-no-files-found: error
- name: Upload Artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Mac64-NDLL
path: |
ndll/Mac64/
!**/.gitignore
if-no-files-found: error
Loading

0 comments on commit 7e499b0

Please sign in to comment.