Skip to content

Commit

Permalink
Merge pull request #59 from amit9838/workflows
Browse files Browse the repository at this point in the history
added workflows to test the latest commit
  • Loading branch information
amit9838 authored Feb 2, 2024
2 parents 80b4485 + 7694c8b commit df0b94d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
27 changes: 27 additions & 0 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 2 additions & 4 deletions io.github.amit9838.weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : ".."
}
]
}
Expand Down

0 comments on commit df0b94d

Please sign in to comment.