Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

ADD

ADD #1

Workflow file for this run

# GitHub Actions Workflow for Building Haxe Project
# Improved for readability, maintainability, and efficiency
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
buildLinux:
name: ✨ Build on Linux
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.7
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Install Dependencies & Setup
run: |
sudo apt-get update
sudo apt-get install -y libvlc-dev libvlccore-dev
haxelib setup ~/haxelib
haxelib install hxcpp --quiet
chmod +x ./setup/unix.sh
./setup/unix.sh
- name: Skip SScript setup mode
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
- name: Create Version Tag
run: echo "${{ github.run_id }}" > VERSION
- name: Compile for Linux
run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id }}" -D officialBuild
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.4
with:
name: linuxBuild
path: export/release/linux/bin
buildWindows:
name: 🌐 Build on Windows
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.7
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Install Dependencies & Setup
run: |
haxelib setup C:/haxelib
haxelib install hxcpp --quiet
setup\windows.bat
shell: cmd
- name: Skip SScript setup mode
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> %USERPROFILE%\settings.cocoa
shell: cmd
- name: Create Version Tag
run: echo "${{ github.run_id }}" > VERSION
- name: Compile for Windows
run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id }}" -D officialBuild
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.4
with:
name: windowsBuild
path: export/release/windows/bin
buildMac:
name: 🌟 Build on macOS
runs-on: macos-15
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.7
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Install Dependencies & Setup
run: |
haxelib setup ~/haxelib
haxelib install hxcpp --quiet
chmod +x ./setup/unix.sh
./setup/unix.sh
- name: Skip SScript setup mode
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
- name: Create Version Tag
run: echo "${{ github.run_id }}" > VERSION
- name: Compile for macOS
run: haxelib run lime build mac --app-version="4.0.0-${{ github.run_id }}" -D officialBuild
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.4
with:
name: macBuild
path: export/release/macos/bin