actions: newer haxe for docs #6
This file contains 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: CI | |
on: [push, pull_request] | |
jobs: | |
package-haxelib: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: box2d-haxelib | |
path: | | |
./ | |
!scripts/ | |
!haxe-*-*/ | |
!neko-*-*/ | |
!.git/ | |
if-no-files-found: error | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: krdlab/setup-haxe@v1 | |
with: | |
haxe-version: 4.3.6 | |
- name: Set HAXEPATH | |
run: | | |
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV | |
- name: Install Haxe dependencies | |
run: | | |
haxelib install lime --quiet | |
haxelib install openfl --quiet | |
haxelib install dox --quiet | |
haxelib dev box2d ${{ github.workspace }} | |
- name: Build docs | |
working-directory: scripts | |
run: | | |
haxe docs.hxml | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: box2d-docs | |
path: docs | |
if-no-files-found: error | |
samples: | |
needs: package-haxelib | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
haxe-version: [4.0.5, 4.1.5, 4.2.5, 4.3.6] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: krdlab/setup-haxe@v1 | |
with: | |
haxe-version: ${{ matrix.haxe-version }} | |
- name: Set HAXEPATH | |
run: | | |
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV | |
- name: Install Haxe dependencies | |
run: | | |
haxelib install lime --quiet | |
haxelib install openfl --quiet | |
haxelib install actuate --quiet | |
haxelib dev box2d ${{ github.workspace }} | |
- name: Build samples | |
run: | | |
haxelib run lime build samples/TestBed neko | |
haxelib run lime build samples/TestBed html5 | |
haxelib run lime build samples/TestBed hl | |
haxelib run lime build samples/TestBed flash |