mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
Linux: New icons, CI, and release info (#7)
* Linux: Export symbolic icon in Flatpak manifest * GitHub Actions: Add Flatpak action Help make sure any Linux changes don't break the Flatpak build. * GitHub Actions: Add Godot PCK export Helpful for testing Linux releases * MetaInfo: Update release info
This commit is contained in:
parent
d48d87028d
commit
80acca522b
4 changed files with 86 additions and 0 deletions
24
.github/workflows/flatpak.yml
vendored
Normal file
24
.github/workflows/flatpak.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Flatpak
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master2
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
flatpak:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
|
||||
with:
|
||||
bundle: tinycrate.flatpak
|
||||
manifest-path: linux/net.hhoney.tinycrate.yml
|
||||
cache-key: "flatpak-builder-${{ github.sha }}"
|
||||
56
.github/workflows/godot.yml
vendored
Normal file
56
.github/workflows/godot.yml
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
name: "Godot Engine"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
release:
|
||||
types:
|
||||
- released
|
||||
|
||||
env:
|
||||
GODOT_VERSION: 3.6
|
||||
EXPORT_NAME: tinycrate-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: |
|
||||
gh release upload '${{ github.ref_name }}' ${{ env.EXPORT_NAME }}.pck --repo '${{ github.repository }}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue