Update workflow
This commit is contained in:
parent
1ad8f49e50
commit
fd51096ce2
1 changed files with 18 additions and 4 deletions
|
@ -10,24 +10,38 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Cache system dependencies
|
- name: Restore system dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache/restore@v3
|
||||||
id: cache-system
|
id: cache-system
|
||||||
with:
|
with:
|
||||||
key: cache-system
|
key: cache-system
|
||||||
path: /var/cache/apt
|
path: /var/cache/apt
|
||||||
- name: Cache flatpak dependencies
|
- name: Restore flatpak dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache/restore@v3
|
||||||
id: cache-flatpak
|
id: cache-flatpak
|
||||||
with:
|
with:
|
||||||
key: cache-flatpak
|
key: cache-flatpak
|
||||||
path: /var/lib/flatpak/
|
path: /var/lib/flatpak/
|
||||||
- name: Install system dependencies
|
- 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
|
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: Save system dependencies
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
if: always()
|
||||||
|
id: cache-system
|
||||||
|
with:
|
||||||
|
key: cache-system
|
||||||
|
path: /var/cache/apt
|
||||||
- name: Add flathub repo and install flatpak dependencies
|
- name: Add flathub repo and install flatpak dependencies
|
||||||
run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: flatpak-builder --install-deps-from flathub build-flatpak com.experimentalcraft.NekoPlayer.yml --repo ./flatpak-repo
|
run: flatpak-builder --install-deps-from flathub build-flatpak com.experimentalcraft.NekoPlayer.yml --repo ./flatpak-repo
|
||||||
|
- name: Save flatpak dependencies
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
id: cache-flatpak
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
key: cache-flatpak
|
||||||
|
path: /var/lib/flatpak/
|
||||||
- name: Download uploading script
|
- 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
|
run: wget https://raw.githubusercontent.com/flatpak/flat-manager/9401efbdc0d6bd489507d8401c567ba219d735d5/flat-manager-client -O flat-manager-client && chmod +x flat-manager-client
|
||||||
- name: Upload to flatpak repo
|
- name: Upload to flatpak repo
|
||||||
|
|
Loading…
Reference in a new issue