fififififix #55
Workflow file for this run
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
on: | |
push: | |
tags: | |
- "*" | |
name: Create Release | |
jobs: | |
# This workflow contains a single job called "build" | |
buildLinux: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: 4.3.2 | |
# Runs a set of commands using the runners shell | |
- 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 | |
haxelib install hmm --quiet | |
haxelib run hmm install | |
- 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}}" | |
- name: Publish Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linuxBuild | |
path: "export/release/linux/bin" | |
buildWindows: | |
runs-on: windows-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/[email protected] | |
- uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: 4.3.2 | |
# Runs a set of commands using the runners shell | |
- name: Install Haxelib | |
run: | | |
haxelib setup C:/haxelib | |
haxelib install hxcpp > /dev/null --quiet | |
haxelib install hmm --quiet | |
haxelib run hmm install | |
shell: cmd | |
- name: Create Version Tag | |
run: echo "${{github.run_id}}" > VERSION | |
- name: Compile | |
run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id}}" | |
- name: Publish Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windowsBuild | |
path: export/release/windows/bin | |
buildMac: | |
runs-on: macos-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: 4.3.2 | |
# Runs a set of commands using the runners shell | |
- name: Install Haxelib | |
run: | | |
haxelib setup ~/haxelib | |
haxelib install hxcpp > /dev/null --quiet | |
haxelib install hmm --quiet | |
haxelib run hmm install | |
- 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}}" | |
- name: Publish Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macBuild | |
path: export/release/macos/bin | |
release: | |
needs: | |
- buildLinux | |
- buildMac | |
- buildWindows | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create Draft Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: Release ${{ github.ref_name }} | |
draft: true | |
prerelease: false | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v4 | |
- name: Zip artifacts | |
run: | | |
zip -r windowsBuild.zip windowsBuild/ | |
zip -r linuxBuild.zip linuxBuild/ | |
zip -r macBuild.zip macBuild/ | |
- name: Upload Windows build to the release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: windowsBuild.zip | |
asset_name: windowsBuild.zip | |
asset_content_type: application/zip | |
- name: Upload Linux build to the release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: linuxBuild.zip | |
asset_name: linuxBuild.zip | |
asset_content_type: application/zip | |
- name: Upload MacOS build to the release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: macBuild.zip | |
asset_name: macBuild.zip | |
asset_content_type: application/zip |