[ci] Target Gnome 48 and fix Flatpak builder
This commit is contained in:
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@ -23,26 +23,42 @@ jobs:
|
|||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
flatpak:
|
flatpak:
|
||||||
name: Flatpak
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
|
||||||
|
options: --privileged
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Install git
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get install -y git
|
||||||
sudo apt-get install -y flatpak flatpak-builder xvfb
|
|
||||||
|
|
||||||
- name: Add Flathub repo
|
- name: Checkout source
|
||||||
run: |
|
run: |
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
git clone ${GITEA_SERVER_URL}/${GITEA_REPOSITORY}.git .
|
||||||
|
git checkout ${GITEA_SHA}
|
||||||
|
|
||||||
- name: Build Flatpak
|
- name: Build Flatpak
|
||||||
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
|
run: |
|
||||||
with:
|
xvfb-run --auto-servernum \
|
||||||
bundle: notify.flatpak
|
flatpak-builder \
|
||||||
manifest-path: build-aux/com.ranfdev.Notify.Devel.json
|
--repo=repo \
|
||||||
repository-name: flathub
|
--force-clean \
|
||||||
run-tests: true
|
--install-deps-from=flathub \
|
||||||
cache-key: flatpak-builder-${{ github.sha }}
|
--default-branch=master \
|
||||||
|
--arch=x86_64 \
|
||||||
|
--ccache \
|
||||||
|
build-dir \
|
||||||
|
build-aux/com.ranfdev.Notify.Devel.json
|
||||||
|
|
||||||
|
- name: Bundle Flatpak
|
||||||
|
run: |
|
||||||
|
flatpak build-bundle repo notify.flatpak com.ranfdev.Notify.Devel
|
||||||
|
|
||||||
|
- name: Upload artifact (Gitea Packages)
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
-F "file=@notify.flatpak" \
|
||||||
|
${GITEA_SERVER_URL}/api/packages/${GITEA_REPOSITORY_OWNER}/generic/notify/latest/notify.flatpak
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id" : "com.ranfdev.Notify.Devel",
|
"id" : "com.ranfdev.Notify.Devel",
|
||||||
"runtime" : "org.gnome.Platform",
|
"runtime" : "org.gnome.Platform",
|
||||||
"runtime-version" : "47",
|
"runtime-version" : "48",
|
||||||
"sdk" : "org.gnome.Sdk",
|
"sdk" : "org.gnome.Sdk",
|
||||||
"sdk-extensions" : [
|
"sdk-extensions" : [
|
||||||
"org.freedesktop.Sdk.Extension.rust-stable",
|
"org.freedesktop.Sdk.Extension.rust-stable",
|
||||||
|
|||||||
Reference in New Issue
Block a user