Add linc_luajit installation to workflow #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build SamMaster | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| workflow_dispatch: | |
| jobs: | |
| build-windows: | |
| name: Build (Windows) | |
| runs-on: windows-latest | |
| steps: | |
| # ── Checkout ────────────────────────────────────────────────────────────── | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # ── Haxe 4.2.4 ──────────────────────────────────────────────────────────── | |
| - name: Setup Haxe 4.2.4 | |
| uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.2.4 | |
| # ── Versioned haxelib packages ───────────────────────────────────────────── | |
| # Only packages explicitly referenced in Project.xml, plus hxcpp/lime/openfl | |
| # which are required for any cpp/desktop build to work. | |
| - name: Install versioned haxelib packages | |
| shell: bash | |
| run: | | |
| haxelib install hxcpp 4.3.2 --quiet | |
| haxelib install lime 7.7.0 --quiet | |
| haxelib install openfl 9.1.0 --quiet | |
| haxelib install flixel 4.11.0 --quiet | |
| haxelib install flixel-addons 2.8.0 --quiet | |
| haxelib install flixel-ui 2.4.0 --quiet | |
| haxelib install hscript 2.4.0 --quiet | |
| haxelib install extension-webm --quiet | |
| haxelib install linc_luajit 0.0.6 --quiet | |
| # ── Git-based haxelib packages ───────────────────────────────────────────── | |
| - name: Install git haxelib packages | |
| shell: bash | |
| run: | | |
| haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc.git --quiet | |
| haxelib git faxe https://github.com/uhrobots/faxe.git --quiet | |
| # ── lime setup ──────────────────────────────────────────────────────────── | |
| - name: Setup lime | |
| shell: bash | |
| run: haxelib run lime setup -y | |
| # ── Build ───────────────────────────────────────────────────────────────── | |
| - name: Compile (Windows release) | |
| shell: bash | |
| run: haxelib run lime build windows -release | |
| # ── Upload artifact ─────────────────────────────────────────────────────── | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SamMaster-Windows | |
| path: export/release/windows/bin/ | |
| if-no-files-found: error |