Skip to content

Commit

Permalink
ci: Use github action to compile and publish flatpak and macos bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
glaumar committed Jul 4, 2024
1 parent 9b8631f commit 212e65a
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create Flatpak Bundle

on:
release:
types: [published]
workflow_dispatch:

jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.6
options: --privileged
steps:
- uses: actions/checkout@v4
with:
lfs: true
repository: glaumar/QRookie

- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: QRookie.flatpak
upload-artifact: false
manifest-path: io.github.glaumar.QRookie.yml
cache-key: flatpak-builder-${{ github.sha }}


- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: QRookie.flatpak
asset_name: QRookie.flatpak
tag: ${{ github.ref }}

33 changes: 33 additions & 0 deletions .github/workflows/macos_bundle_arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create MacOS Bundle(arm64)

on:
release:
types: [published]
workflow_dispatch:

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
with:
lfs: true
repository: glaumar/QRookie

- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Build
run: |
cd macOs/
./signApp.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: macOs/QRookie_arm64.dmg
asset_name: QRookie_macOs_arm64.dmg
tag: ${{ github.ref }}
34 changes: 34 additions & 0 deletions .github/workflows/macos_bundle_x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create MacOS Bundle(x86_64)

on:
release:
types: [published]
workflow_dispatch:


jobs:
build:
runs-on: macos-13

steps:
- uses: actions/checkout@v4
with:
lfs: true
repository: glaumar/QRookie

- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Build
run: |
cd macOs/
./signApp.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: macOs/QRookie_x86_64.dmg
asset_name: QRookie_macOs_x86_64.dmg
tag: ${{ github.ref }}

0 comments on commit 212e65a

Please sign in to comment.