2.0.0 #17
Workflow file for this run
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: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Build npm package | |
| run: | | |
| npm ci | |
| npm pack | |
| env: | |
| CI: true | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: openfl-loader | |
| path: openfl-loader-*.tgz | |
| if-no-files-found: error | |
| - run: npm link | |
| - uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.2.5 | |
| - name: Install Haxelib dependencies | |
| run: | | |
| haxelib install lime --quiet | |
| haxelib install openfl --quiet | |
| haxelib install genes --quiet | |
| - name: Build samples/basic | |
| working-directory: samples/basic | |
| run: | | |
| npm link openfl-loader | |
| npm install | |
| npm run build | |
| - name: Build samples/genes | |
| working-directory: samples/genes | |
| run: | | |
| npm link openfl-loader | |
| npm install | |
| npm run build |