Skip to content

Add linc_luajit installation to workflow #4

Add linc_luajit installation to workflow

Add linc_luajit installation to workflow #4

Workflow file for this run

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