lots of things #26
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: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
buildWindows64: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: 4.3.3 | |
- name: Restore Cache | |
uses: actions/cache@main | |
with: | |
key: cache-build-windows | |
path: | | |
.haxelib/ | |
export/debug/windows/haxe/ | |
export/debug/windows/obj/ | |
restore-keys: | | |
cache-build-windows | |
- name: Install Haxelib | |
run: | | |
haxe -cp ./compileData -D analyzer-optimize -main Libraries --interp | |
- name: Create Version Tag | |
run: echo "${{github.run_id}}" > VERSION | |
- name: Compile | |
run: haxelib run lime build windows -debug | |
- name: Publish Artifact | |
uses: actions/upload-artifact@main | |
with: | |
name: windowsBuild | |
path: export/debug/windows/bin | |
- name: Uploading new cache | |
uses: actions/cache@main | |
with: | |
key: cache-build-windows | |
path: | | |
.haxelib/ | |
export/debug/windows/haxe/ | |
export/debug/windows/obj/ | |
restore-keys: | | |
cache-build-windows |