Version bump to 66.0.1 #92
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
name: Build Luxtorpeda | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: rust:1.71-buster | |
env: | |
CARGO_HOME: ./cargo | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Deps | |
run: apt-get update && apt-get -y install clang libsdl2-dev scons libpng-dev | |
- name: Cache Godot deps | |
id: cache-godot | |
uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-build-godot351 | |
path: | | |
/usr/local/bin/godot | |
~/.local/share/godot/templates/3.5.2.stable/linux_x11_64_release | |
- name: Install Godot | |
if: steps.cache-godot.outputs.cache-hit != 'true' | |
run: wget https://downloads.tuxfamily.org/godotengine/3.5.2/Godot_v3.5.2-stable_linux_headless.64.zip && unzip Godot_v3.5.2-stable_linux_headless.64.zip && chmod +x Godot_v3.5.2-stable_linux_headless.64 && rm Godot_v3.5.2-stable_linux_headless.64.zip && mv Godot_v3.5.2-stable_linux_headless.64 /usr/local/bin/godot | |
- name: Build Godot Export Template | |
if: steps.cache-godot.outputs.cache-hit != 'true' | |
run: make godot-export-template SCONS="python3 /usr/bin/scons" && mkdir -p ~/.local/share/godot/templates/3.5.2.stable && mv ./godot-build/bin/godot.x11.opt.64 ~/.local/share/godot/templates/3.5.2.stable/linux_x11_64_release | |
- name: Build | |
run: make release GODOT=godot | |
- name: Package | |
run: make version=${{ github.ref_name }} luxtorpeda.tar.xz GODOT=godot | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: luxtorpeda.tar.xz | |
path: ./luxtorpeda.tar.xz | |
deploy: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: luxtorpeda.tar.xz | |
path: ./ | |
- name: Rename Artifact for Release Prep | |
run: mv luxtorpeda.tar.xz luxtorpeda-${{ github.ref_name }}.tar.xz | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v0.1.15 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
name: ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
generate_release_notes: true | |
files: luxtorpeda-${{ github.ref_name }}.tar.xz |