Moon4K-MacOSX #6
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: Moon4K-MacOSX | |
on: | |
workflow_dispatch: | |
jobs: | |
buildMac: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/[email protected] | |
- uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: 4.3.4 | |
- name: Restore Previous Cache | |
id: cache-build-restore | |
uses: actions/cache/restore@main | |
with: | |
path: | | |
.haxelib/ | |
export/debug/windows/haxe/ | |
export/debug/windows/obj/ | |
key: cache-windows-debug | |
- name: Set Cache Status | |
id: cache-status | |
run: echo "CACHE_HIT=${{ steps.cache-build-restore.outputs.cache-hit }}" >> $GITHUB_ENV | |
- name: Install Haxelib | |
run: | | |
haxelib setup ~/haxelib | |
haxelib install hxcpp > /dev/null --quiet | |
chmod +x ./setup/setup.sh | |
sh ./setup/setup.sh | |
- name: Create Version Tag | |
run: echo "${{github.run_id}}" > VERSION | |
- name: Compile | |
run: haxelib run lime build mac --app-version="4.0.0-${{ github.run_id}}" -debug | |
- name: Clear Previous Cache | |
uses: actions/github-script@main | |
with: | |
script: await require('./actions/cache/clear-cache.js')({github, context}, 'cache-macos-debug'); | |
- name: Save Current Cache | |
uses: actions/cache@main | |
with: | |
key: cache-macos-debug | |
path: | | |
.haxelib/ | |
export/debug/macos/haxe/ | |
export/debug/macos/obj/ | |
restore-keys: | | |
cache-macos-debug | |
- name: Publish Artifact | |
uses: actions/[email protected] | |
with: | |
name: Moon4K-Mac-Release | |
path: export/debug/macos/bin |