Flatpak CI #6
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: | |
# branches: [main] | |
pull_request: | |
name: Build Flatpak app | |
jobs: | |
flatpak: | |
name: "Flatpak" | |
runs-on: ubuntu-24.04 | |
container: | |
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08 | |
options: --privileged | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install rustup | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
- name: Run rustup | |
run: | | |
. "$HOME/.cargo/env" | |
rustup toolchain install stable | |
# apt-get update | |
# apt-get install -y flatpak-builder | |
- name: Clone Flatpak repo | |
run: | | |
git clone --recurse-submodules https://github.com/C0rn3j/com.github.taiko2k.tauonmb.git tauon-flatpak | |
cd tauon-flatpak; git checkout tekoreless | |
# https://github.com/marketplace/actions/flatpak-builder | |
- name: Build Flatpak | |
uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | |
with: | |
bundle: tauonmb.flatpak | |
manifest-path: tauon-flatpak/com.github.taiko2k.tauonmb.json | |
cache-key: flatpak-builder-${{ github.sha }} | |
- name: "[DEBUG] List all files" | |
run: find . | |
- name: Create 7z | |
run: | | |
mkdir -p dist/zip | |
APP_NAME="TauonMusicBox" | |
APP_PATH="dist/${APP_NAME}" | |
ZIP_PATH="dist/zip/${APP_NAME}.7z" | |
zip -r "${ZIP_PATH}" "${APP_PATH}" | |
- name: Upload 7z artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TauonMusicBox-flatpak | |
path: TauonMusicBox.7z |