actions: update haxelib #3
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| haxelib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.3.6 | |
| - name: Package Haxelib | |
| working-directory: haxelib | |
| run: haxe haxelib.hxml | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: gtween-haxelib | |
| path: bin/haxelib/ | |
| if-no-files-found: error | |
| build-api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.0.5 | |
| - name: Set up Haxelib dependencies | |
| run: | | |
| haxelib --global update haxelib --quiet | |
| haxelib install dox --quiet | |
| haxelib dev gtween ${{ github.workspace }} | |
| - name: Build API reference | |
| working-directory: docs | |
| run: haxe docs.hxml | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: gtween-docs | |
| path: bin/api/ | |
| if-no-files-found: error | |
| build-swc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.0.5 | |
| - name: Set up Haxelib dependencies | |
| run: | | |
| haxelib dev gtween ${{ github.workspace }} | |
| - name: Build Flash .swc library | |
| run: haxe flash.hxml | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: gtween-swc | |
| path: bin/gtween-haxe.swc | |
| if-no-files-found: error | |
| tests: | |
| strategy: | |
| matrix: | |
| haxe-version: [4.0.5, 4.1.5, 4.2.5, 4.3.7] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: ${{ matrix.haxe-version }} | |
| - uses: cedx/setup-hashlink@v6 | |
| - name: Set up Haxelib dependencies | |
| run: | | |
| haxelib --global update haxelib --quiet | |
| haxelib install utest --quiet | |
| haxelib dev gtween ${{ github.workspace }} | |
| - name: Run Tests | |
| working-directory: tests | |
| run: | | |
| haxe interp.hxml | |
| haxe neko.hxml | |
| neko bin/tests.n | |
| haxe hl.hxml | |
| hl bin/tests.hl | |
| haxe js.hxml | |
| node bin/tests.js | |
| haxe cpp.hxml | |
| bin/tests/TestsMain-debug |