-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f579907
commit dfd13e3
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
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.2.5 | ||
|
||
# - 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: [3.4.7, 4.0.5, 4.1.5, 4.2.5, 4.3.2] | ||
steps: | ||
|
||
- 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 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: box2d-haxelib | ||
path: box2d-haxelib | ||
|
||
- name: Prepare box2d | ||
run: | | ||
haxelib dev box2d box2d-haxelib | ||
- name: Build samples | ||
run: | | ||
haxelib run lime build samples/TestBed neko | ||
haxelib run lime build samples/TestBed html5 | ||
haxelib run lime build samples/TestBed flash | ||
- name: Build HashLink samples | ||
if: ${{ matrix.haxe-version != '3.4.7' }} | ||
run: | | ||
haxelib run lime build samples/TestBed hl |