-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from stefanb2/topic-add-flatpak-build
Add workflow for Flatpak build
- Loading branch information
Showing
8 changed files
with
130 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.ui] | ||
indent_size = 1 | ||
|
||
[*.{yml,appdata.xml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
name: build-flatpak | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-linux: | ||
name: Build Flatpak | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
flatpak: [yes] | ||
fail-fast: false | ||
|
||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-23.08 | ||
options: --privileged | ||
|
||
steps: | ||
- name: Install additional packages | ||
run: > | ||
dnf install --setopt=install_weak_deps=False -y | ||
nodejs | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
# NOTE: this git commit adds support for "upload-artifact: false" | ||
# @TODO - replace with tag once included in a release | ||
uses: flatpak/flatpak-github-actions/flatpak-builder@b8be6bc0ede43cb3a2cc55895654312b14f84a0d | ||
with: | ||
bundle: io.github.bkueng.qMasterPassword | ||
manifest-path: ./data/flatpak/io.github.bkueng.qMasterPassword.yml | ||
# NOTE: this is not an official build hence nothing should be cached | ||
cache: false | ||
#cache-key: flatpak-builder-${{ github.sha }} | ||
upload-artifact: false | ||
verbose: true | ||
|
||
- name: Upload Flatpak | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: flatpak | ||
path: io.github.bkueng.qMasterPassword | ||
# skip step when running under act-cli | ||
if: | | ||
env.ACT != 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
workflow_call: | ||
|
||
jobs: | ||
pre-commit: | ||
name: Run pre-commit checks | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
pre-commit: [yes] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
id: io.github.bkueng.qMasterPassword | ||
runtime: org.kde.Platform | ||
runtime-version: '5.15-23.08' | ||
sdk: org.kde.Sdk | ||
command: qMasterPassword | ||
rename-icon: qmasterpassword | ||
rename-desktop-file: qMasterPassword.desktop | ||
rename-appdata-file: qMasterPassword.appdata.xml | ||
finish-args: | ||
- --share=ipc | ||
- --socket=fallback-x11 | ||
- --socket=wayland | ||
- --device=dri | ||
- --talk-name=org.kde.StatusNotifierWatcher | ||
modules: | ||
- name: libscrypt | ||
buildsystem: autotools | ||
no-autogen: true | ||
make-install-args: | ||
- PREFIX=/app | ||
sources: | ||
- type: archive | ||
url: https://github.com/technion/libscrypt/archive/v1.22.tar.gz | ||
sha256: a2d30ea16e6d288772791de68be56153965fe4fd4bcd787777618b8048708936 | ||
- name: qMasterPassword | ||
buildsystem: cmake-ninja | ||
config-opts: | ||
- -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
- -DDISABLE_FILL_FORM_SHORTCUTS=ON | ||
post-install: | ||
- install -Dm644 /app/share/pixmaps/qmasterpassword.png -t /app/share/icons/hicolor/512x512/apps | ||
sources: | ||
- type: dir | ||
path: ../../ |