Skip to content

Commit

Permalink
Merge pull request #5 from cassidyjames/linux-ci
Browse files Browse the repository at this point in the history
Add CI to build Linux binaries
  • Loading branch information
HarmonyHoney authored Dec 4, 2024
2 parents 6c7dafe + 7176024 commit a134169
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
github: HarmonyHoney
ko_fi: hhoney
custom:
- https://hhoneysoft.itch.io/
- https://store.steampowered.com/publisher/HarmonyHoney
- https://www.youtube.com/@hhoney7

# Unused by keeping here as a reminder
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
57 changes: 57 additions & 0 deletions .github/workflows/godot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Godot Engine"
on:
workflow_dispatch:
pull_request:
release:
types:
- released

env:
GODOT_VERSION: 3.6
EXPORT_NAME: rota-linux

jobs:
export:
name: Export
runs-on: ubuntu-latest
container:
image: docker.io/smks/godot-ci:3.6
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true

- name: Set up export templates
run: |
mkdir -v -p ~/.local/share/godot/templates/
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Export
run: |
mkdir --verbose --parents ./export/linux
godot --no-window --path=./project.godot --export-pack "Linux/X11" ./export/linux/${EXPORT_NAME}.pck
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.EXPORT_NAME }}
path: export/linux/${{ env.EXPORT_NAME }}.pck

release:
name: Release
needs: export
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.EXPORT_NAME }}

- name: Upload to release
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
tar -cJf ${{ env.EXPORT_NAME }}.tar.xz ${{ env.EXPORT_NAME }}.pck
gh release upload '${{ github.ref_name }}' * --repo '${{ github.repository }}'
1 change: 0 additions & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ Steam="*res://addons/steam_api/steam.gd"

window/size/width=1280
window/size/height=720
window/size/borderless=true
window/size/test_width=1920
window/size/test_height=1080
window/stretch/mode="2d"
Expand Down

0 comments on commit a134169

Please sign in to comment.