Moon4K-Linux #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-Linux | |
on: | |
workflow_dispatch: | |
jobs: | |
buildLinux: | |
runs-on: ubuntu-latest | |
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: | | |
sudo apt-get install libvlc-dev | |
sudo apt-get install libvlccore-dev | |
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 Project.xml linux --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-linux-debug'); | |
- name: Save Current Cache | |
uses: actions/cache@main | |
with: | |
key: cache-linux-debug | |
path: | | |
.haxelib/ | |
export/debug/linux/haxe/ | |
export/debug/linux/obj/ | |
restore-keys: | | |
cache-linux-debug | |
- name: Publish Artifact | |
uses: actions/[email protected] | |
with: | |
name: Moon4K-Linux-Release | |
path: 'export/debug/linux/bin' |