Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 61 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,39 @@ name: Build

on:
push:
branches: [ main, experimental ]
branches:
- main
- experimental
pull_request:
branches: [ main, experimental ]
branches:
- main
- experimental
workflow_dispatch:

jobs:
buildLinux:
name: Build Linux
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.3.0
- name: Checkout repository
uses: actions/checkout@v7

- uses: krdlab/setup-haxe@master
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.7
- name: Restore Build cache
uses: actions/cache@v4

- name: Restore Build Cache
uses: actions/cache@v6
with:
key: cacheLinux
path: |
export/release/linux/haxe/
export/release/linux/obj/
restore-keys: |
cacheLinux

- name: Install Haxelib
run: |
sudo apt-get install libvlc-dev
Expand All @@ -34,78 +43,99 @@ jobs:
haxelib install hxcpp > /dev/null --quiet
chmod +x ./setup/unix.sh
sh ./setup/unix.sh
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION

- name: Create version tag
run: echo "${{ github.run_id }}" > VERSION

- name: Compile
run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}" -D officialBuild
- name: Publish Artifact
uses: actions/upload-artifact@v4
run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id }}" -D officialBuild

- name: Publish artifact
uses: actions/upload-artifact@v7
with:
name: linuxBuild
path: export/release/linux/bin

buildWindows:
name: Build Windows
runs-on: windows-latest

steps:
- uses: actions/checkout@v4.3.0
- name: Checkout repository
uses: actions/checkout@v7

- uses: krdlab/setup-haxe@master
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.7
- name: Restore Build cache
uses: actions/cache@v4

- name: Restore Build Cache
uses: actions/cache@v6
with:
key: cacheWindows
path: |
export/release/windows/haxe/
export/release/windows/obj/
restore-keys: |
cacheWindows

- name: Install Haxelib
run: |
haxelib setup C:/haxelib
haxelib install hxcpp > /dev/null --quiet
.\"setup/windows.bat"
shell: cmd
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION

- name: Create version tag
run: echo "${{ github.run_id }}" > VERSION

- name: Compile
run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id}}" -D officialBuild
- name: Publish Artifact
uses: actions/upload-artifact@v4
run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id }}" -D officialBuild

- name: Publish artifact
uses: actions/upload-artifact@v7
with:
name: windowsBuild
path: export/release/windows/bin

buildMac:
runs-on: macos-15
name: Build macOS
runs-on: macos-latest

steps:
- uses: actions/checkout@v4.3.0
- name: Checkout
uses: actions/checkout@v7

- uses: krdlab/setup-haxe@master
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.7
- name: Restore Build cache
uses: actions/cache@v4

- name: Restore Build Cache
uses: actions/cache@v6
with:
key: cacheMac
path: |
export/release/macos/haxe/
export/release/macos/obj/
restore-keys: |
cacheMac

- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null --quiet
chmod +x ./setup/unix.sh
sh ./setup/unix.sh
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION

- name: Create version tag
run: echo "${{ github.run_id }}" > VERSION

- name: Compile
run: haxelib run lime build mac --app-version="4.0.0-${{ github.run_id}}" -D officialBuild
- name: Publish Artifact
uses: actions/upload-artifact@v4
run: haxelib run lime build mac --app-version="4.0.0-${{ github.run_id }}" -D officialBuild

- name: Publish artifact
uses: actions/upload-artifact@v7
with:
name: macBuild
path: export/release/macos/bin
6 changes: 0 additions & 6 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,8 @@
<!--Disable the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />

<!-- Show debug traces for hxCodec -->
<haxedef name="HXC_DEBUG_TRACE" if="debug" />

<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" />

<!--Enable this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />

<!--Shuts Flixel up-->
<haxedef name="FLX_COVERAGE_TEST" />
Expand Down
7 changes: 3 additions & 4 deletions setup/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib install flixel-addons
haxelib install flixel-tools
haxelib install tjson
haxelib install hxdiscord_rpc
haxelib install hxvlc --skip-dependencies
haxelib git hscript-iris https://github.com/pisayesiwsi/hscript-iris.git dev
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate.git dev
haxelib install hscript-iris
haxelib install flixel-animate
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit.git
haxelib git funkin.vis https://github.com/FunkinCrew/funkVis.git 1966f8fbbbc509ed90d4b520f3c49c084fc92fd6
haxelib git grig.audio https://gitlab.com/haxe-grig/grig.audio.git
haxelib install grig.audio
echo Finished!
7 changes: 3 additions & 4 deletions setup/windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib install flixel-addons
haxelib install flixel-tools
haxelib install tjson
haxelib install hxdiscord_rpc
haxelib install hxvlc --skip-dependencies
haxelib git hscript-iris https://github.com/pisayesiwsi/hscript-iris.git dev
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate.git dev
haxelib install hscript-iris
haxelib install flixel-animate
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit.git
haxelib git funkin.vis https://github.com/FunkinCrew/funkVis.git 1966f8fbbbc509ed90d4b520f3c49c084fc92fd6
haxelib git grig.audio https://gitlab.com/haxe-grig/grig.audio.git
haxelib install grig.audio
echo Finished!
pause