28 lines
No EOL
1.6 KiB
YAML
28 lines
No EOL
1.6 KiB
YAML
name: Build
|
|
run-name: Build the project
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- name: Install system dependencies
|
|
run: apt update && apt install -y flatpak-builder flatpak python3-aiohttp python3-tenacity libostree-1-1 python3-gi gir1.2-ostree-1.0 wget
|
|
- name: Add flathub repo and install flatpak dependencies
|
|
run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && flatpak install -y --noninteractive org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08
|
|
- name: Build project
|
|
run: flatpak-builder build-flatpak com.experimentalcraft.NekoPlayer.yml --repo ./flatpak-repo
|
|
- name: Download uploading script
|
|
run: wget https://raw.githubusercontent.com/flatpak/flat-manager/9401efbdc0d6bd489507d8401c567ba219d735d5/flat-manager-client -O flat-manager-client && chmod +x flat-manager-client
|
|
- name: Install Rust toolchain
|
|
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
|
|
- name: Upload to flatpak repo
|
|
run: export REPO_TOKEN=$(echo -n "$FLATPAK_TOKEN" | cargo run --bin gentoken -- --base64 --secret-file - --name nightly-token) && ./flat-manager-client push --commit $(./flat-manager-client create https://flatpak.complecwaft.com nightly) ./flatpak-repo/
|
|
#- uses: actions/upload-artifact@v3
|
|
# with:
|
|
# name: build
|
|
# path: builddir/player |