Skip to content

krdlab/setup-haxe

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-haxe

Build Status License

This action sets up a Haxe environment for use in your workflows.

Supported combinations

Runner OS / Arch haxe-version
ubuntu-latest (x64) stable (e.g. 4.3.7, 3.4.7) / latest (nightly)
macos-latest (Intel / Apple Silicon) stable / latest
windows-latest (x64) stable / latest
ubuntu-24.04-arm (Linux ARM64) latest (nightly) only

Notes:

  • Linux ARM64 only works with haxe-version: latest. HaxeFoundation does not publish stable Haxe ARM64 archives, and Neko 2.3.x (used by Haxe 3.x / 4.0–4.2) has no ARM64 binary. Stable Haxe / Neko 2.3 on Linux ARM64 will fail with an explicit error.
  • Windows ARM64 is not supported (no upstream Haxe / Neko archives).

Usage

See action.yml and .github/workflows/.

Basic:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: krdlab/setup-haxe@v2
        with:
          haxe-version: 4.3.7
      - run: |
          haxe -version
          haxelib install hxnodejs

For nigthly versions:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: krdlab/setup-haxe@v2
        with:
          haxe-version: latest  # Install 'haxe_latest.tar.gz' from https://build.haxe.org/builds/haxe/linux64/
      - run: haxe -version

Caching global packages data

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: krdlab/setup-haxe@v2
        with:
          haxe-version: 4.3.7
          cache-dependency-path: 'lib.hxml'
      - run: |
          haxe -version
          haxelib install lib.hxml --always

About

Set up a specific version of Haxe environment for your workflow.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors