added localized text! #315
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: 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 |