mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-01 19:06:20 -04:00
Add build-flatpak job to the workflow
This commit is contained in:
parent
db33f563a7
commit
2b8f476fc9
2 changed files with 34 additions and 45 deletions
45
.github/workflows/build-flatpak.yml
vendored
45
.github/workflows/build-flatpak.yml
vendored
|
@ -1,45 +0,0 @@
|
|||
name: Build flatpak
|
||||
run-name: Build flatpak
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- flatpak-ci
|
||||
|
||||
jobs:
|
||||
build-snap:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y flatpak flatpak-builder
|
||||
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- name: Restore cache - .flatpak-builder
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: flatpak/.flatpak-builder
|
||||
key: ${{ runner.os }}-flatpak-.flatpak-builder
|
||||
|
||||
- name: Restore cache - build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: flatpak/build
|
||||
key: ${{ runner.os }}-flatpak-build
|
||||
|
||||
- name: Flatpak build
|
||||
run: |
|
||||
cd flatpak
|
||||
flatpak-builder build --force-clean --install-deps-from=flathub --install --user org.onionshare.OnionShare.yaml
|
||||
flatpak build-bundle ~/.local/share/flatpak/repo ~/OnionShare.flatpak org.onionshare.OnionShare --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- name: Compress
|
||||
run: |
|
||||
tar -czvf ~/onionshare-flatpak.tar.gz ~/OnionShare.flatpak
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: flatpak-build
|
||||
path: ~/onionshare-flatpak.tar.gz
|
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
|
@ -331,3 +331,37 @@ jobs:
|
|||
with:
|
||||
name: flatpak-build
|
||||
path: ~/onionshare_amd64.snap
|
||||
|
||||
build-flatpak:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y flatpak flatpak-builder
|
||||
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- name: Restore cache - .flatpak-builder
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: flatpak/.flatpak-builder
|
||||
key: flatpak-.flatpak-builder
|
||||
|
||||
- name: Restore cache - build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: flatpak/build
|
||||
key: flatpak-build
|
||||
|
||||
- name: Flatpak build
|
||||
run: |
|
||||
cd flatpak
|
||||
flatpak-builder build --force-clean --install-deps-from=flathub --install --user org.onionshare.OnionShare.yaml
|
||||
flatpak build-bundle ~/.local/share/flatpak/repo ~/OnionShare.flatpak org.onionshare.OnionShare --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: flatpak-build
|
||||
path: ~/OnionShare.flatpak
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue