Skip to content

Update PlayState.hx #313

Update PlayState.hx

Update PlayState.hx #313

Workflow file for this run

name: Release Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
buildWindows:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Restore Previous Cache
id: cache-build-restore
uses: actions/cache/restore@main
with:
path: |
.haxelib/
export/release/windows/haxe/
export/release/windows/obj/
key: cache-windows-release
- name: Set Cache Status
id: cache-status
run: echo CACHE_HIT=${{ steps.cache-build-restore.outputs.cache-hit }} | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
shell: powershell
- name: Installing Libraries
run: haxe --interp -cp ./actions/libs-installer -D analyzer-optimize -main Main
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: haxelib run lime build windows
- name: Clear Previous Cache
uses: actions/github-script@main
with:
script: await require('./actions/cache/clear-cache.js')({github, context}, 'cache-windows-release');
- name: Save Current Cache
uses: actions/cache@main
with:
key: cache-windows-release
path: |
.haxelib/
export/release/windows/haxe/
export/release/windows/obj/
restore-keys: |
cache-windows-release
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: windowsBuild
path: export/release/windows/bin