ok. #13
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: Windows Build | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Windows Build | |
| permissions: write-all | |
| runs-on: windows-latest | |
| steps: | |
| - name: Retrieving latest commit. | |
| uses: actions/checkout@v4 | |
| - name: Setting up Haxe | |
| uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: latest | |
| - name: Restore existing build cache for faster compilation | |
| uses: actions/cache@v3 | |
| with: | |
| key: cache-build-windows | |
| path: | | |
| .haxelib/ | |
| export/windows/haxe/ | |
| export/windows/obj/ | |
| restore-keys: | | |
| cache-build-windows | |
| - name: Installing / Updating libraries | |
| run: | | |
| haxe -cp cli --run Lib | |
| - name: Building the game | |
| run: | | |
| haxelib run lime build windows | |
| - name: Uploading artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: LineTapper | |
| path: export/windows/bin | |
| - name: Uploading new cache | |
| uses: actions/cache@v3 | |
| with: | |
| key: cache-build-windows | |
| path: | | |
| .haxelib/ | |
| export/windows/haxe/ | |
| export/windows/obj/ | |
| restore-keys: | | |
| cache-build-windows |