From 2b89619516fd43c951fc6b1ea355e7c24c7fc5c0 Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Fri, 2 Feb 2024 19:34:10 +0530 Subject: [PATCH 1/2] added workflows to test the latest commit --- .github/workflows/flatpak.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/snap.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .github/workflows/flatpak.yml create mode 100644 .github/workflows/snap.yaml diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml new file mode 100644 index 0000000..241c400 --- /dev/null +++ b/.github/workflows/flatpak.yml @@ -0,0 +1,32 @@ +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + types: [ "review_requested", "ready_for_review" ] + workflow_dispatch: +name: Flatpak +permissions: + id-token: write + contents: read +jobs: + gnome-flatpak: + name: "Flatpak" + runs-on: ubuntu-latest + if: ${{ github.event.pull_request.user.login != 'weblate' }} + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-45 + options: --privileged + strategy: + matrix: + arch: [x86_64] + fail-fast: false + steps: + - uses: actions/checkout@v4 + - uses: flatpak/flatpak-github-actions/flatpak-builder@v6.3 + with: + bundle: io.github.amit9838.weather.flatpak + manifest-path: io.github.amit9838.weather.json + cache-key: flatpak-builder-${{ github.sha }} + arch: ${{ matrix.arch }} + restore-cache: true diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml new file mode 100644 index 0000000..9fcd6d8 --- /dev/null +++ b/.github/workflows/snap.yaml @@ -0,0 +1,27 @@ +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + types: [ "review_requested", "ready_for_review" ] + workflow_dispatch: +name: Snap +permissions: + id-token: write + contents: read +jobs: + gnome-snap: + name: "Snap" + runs-on: ubuntu-latest + steps: + - name: Checkout Git repository + uses: actions/checkout@v4 + - name: Build Test Mousam Snap + uses: snapcore/action-build@v1 + id: snapcraft-build + with: + snapcraft-args: "-v" + - uses: actions/upload-artifact@v4 + with: + name: mousam-snap + path: ${{ steps.snapcraft-build.outputs.snap }} From 7694c8bd677baa4931ab0bcb95ad258aa98129a6 Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Fri, 2 Feb 2024 20:45:32 +0530 Subject: [PATCH 2/2] fix the flatpak manifest --- io.github.amit9838.weather.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/io.github.amit9838.weather.json b/io.github.amit9838.weather.json index d946c11..de8f998 100644 --- a/io.github.amit9838.weather.json +++ b/io.github.amit9838.weather.json @@ -30,10 +30,8 @@ "buildsystem" : "meson", "sources" : [ { - "type" : "git", - "tag" : "v1.0.1", - "commit" : "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", - "url" : "https://github.com/amit9838/weather.git" + "type" : "dir", + "path" : ".." } ] }