Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds macOS theme switch listening #430

Draft
wants to merge 401 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
401 commits
Select commit Hold shift + click to select a range
87c0a23
add more debugrefresh
Murmele Feb 7, 2023
fa1d2fb
remove not needed variable
Murmele Feb 7, 2023
6853791
no need to selectHead after commit, because this can be done now with…
Murmele Feb 7, 2023
2b7052c
remove comments
Murmele Feb 7, 2023
48b5e85
restore to selected commit after reset
Murmele Feb 7, 2023
cae0ff2
restore if hard reset
Murmele Feb 7, 2023
1445cd5
do not trigger refresh in the commit and in the submodules
Murmele Feb 7, 2023
ab94aed
fix test
Murmele Feb 7, 2023
a5ab7c3
Description: Rename function
Murmele Feb 15, 2023
310cbdf
Description: Enable debug message with cmake
Murmele Feb 15, 2023
362bbdd
Description: Enable tests again
Murmele Feb 15, 2023
33d8cdc
Do not show debug output in release mode
Murmele Feb 16, 2023
1efd620
Fix build
Murmele Feb 16, 2023
ad659ad
fix test
Murmele Feb 17, 2023
20a371b
Enable test
Murmele Feb 17, 2023
60fcf1d
Fix tests
Murmele Feb 17, 2023
5882fc7
Decrease wait time to original one
Murmele Feb 17, 2023
96704ad
No need to always wait 1s
Murmele Feb 17, 2023
c43784e
No need to wait that long
Murmele Feb 17, 2023
a318c6a
use higher waittime, because the CI fails, but offline it does not
Murmele Feb 17, 2023
1cc2855
format
Murmele Feb 17, 2023
5fadb7b
Update
Feb 2, 2023
175431d
Update changelog.md
Murmele Feb 17, 2023
47ab75b
Merge pull request #306 from Murmele/fixRefreshCalls
Murmele Feb 25, 2023
4b88b86
Merge pull request #454 from Murmele/features
Murmele Feb 25, 2023
28b0731
temporary checking out other branch
Murmele Feb 25, 2023
45d6abf
Update changelog.md
Murmele Feb 25, 2023
b698c5d
Update build.yml
Murmele Feb 25, 2023
2494d33
use .* because in the changed branch the commit id instead of the tag…
Murmele Feb 25, 2023
fc7ca5f
Merge pull request #475 from Murmele/fixFlatpak
Murmele Feb 25, 2023
cd7ebb4
Use archlinux, because with alpin an error occurs
Murmele Feb 26, 2023
e7eccf6
Merge pull request #476 from Murmele/flatpakCIBuildFix
Murmele Feb 26, 2023
a734559
Do not force push automatically to the default branch if push to ... …
Murmele Mar 12, 2023
c8c4f68
Merge pull request #491 from Murmele/forcePush_Remote
Murmele Mar 27, 2023
4a25164
Fix repo tab name deduplication only working for 2 tabs at most
exactly-one-kas Mar 29, 2023
451ed93
Update Openssl
Apr 12, 2023
f2c0d33
Fix calling external credential helpers
exactly-one-kas Apr 12, 2023
b6b2428
Fix license file getting CRLF line endings on Windows
exactly-one-kas Apr 12, 2023
54ae13b
Put bundled credential helpers into `credential-helper` subdirectory
exactly-one-kas Apr 12, 2023
2fb8b77
Fix formatting
exactly-one-kas Apr 12, 2023
6a7eecf
Fix repo tab name deduplication only working for 2 tabs at most
Murmele Apr 15, 2023
1e5e00a
Merge pull request #513 from exactly-one-kas/fix-windows-credentials
Murmele Apr 16, 2023
027c94c
update changelog and increase version number
Murmele Apr 17, 2023
0dd426b
remove not needed checkout
Murmele Apr 17, 2023
72cef48
Close the branch drop-down list after the user checks out a branch.
gh-devnull Apr 17, 2023
f49817e
Format
gh-devnull Apr 17, 2023
4a75767
prevent that diffview will be collapsed
Murmele Apr 19, 2023
889ddba
ignore clion build dir
yangjuncode Apr 20, 2023
045e78c
ignore clion config dir
yangjuncode Apr 20, 2023
4e83f30
bump cmake_minimum_required to 3.12 for add_compile_definitions
yangjuncode Apr 20, 2023
4974a32
Update release date
Murmele Apr 20, 2023
6bf49f0
Release 1.3.0
Murmele Apr 20, 2023
2729ed0
Merge pull request #530 from yangjuncode/yj
Murmele Apr 20, 2023
3b9b8ae
When refreshing all childs and parents must be updated as well
Murmele Apr 24, 2023
fde50c3
Merge branch 'Murmele:master' into close-branches-after-checkout
gh-devnull Apr 25, 2023
5b15d5d
Merge pull request #517 from gh-devnull/close-branches-after-checkout
Murmele Apr 25, 2023
6d0208a
Implement index also in the case of a listview. There the name is the…
Murmele Apr 26, 2023
fee97e9
Merge pull request #534 from Murmele/fixStageAll
Murmele Apr 28, 2023
9da61f6
Merge pull request #528 from Murmele/splitterPosition
Murmele Apr 28, 2023
3a91d24
Add display options to the commit list
Nico-Duduf May 15, 2023
ef20f67
Invert commit list text and bright text colors
Nico-Duduf May 15, 2023
1323ddf
Format
Nico-Duduf May 16, 2023
c69c832
Merge pull request #552 from RxLaboratory/CommitList-display-options
Murmele May 16, 2023
8a0dd90
Merge pull request #551 from RxLaboratory/Darktheme-fixes
Murmele May 16, 2023
f26c103
Implement CaseInsensitive
Murmele May 24, 2023
db545a2
Merge pull request #564 from Murmele/implementCaseInsensitivForTreevi…
Murmele May 25, 2023
1e57e7d
Spanish translation
jmmanzano Jun 17, 2023
d3acf74
Merge pull request #583 from jmmanzano/spanish-translation
Murmele Jun 19, 2023
3c92cc0
Adds "Hide Untracked Files" option to DoubleTreeWidget cogwheel conte…
pvacatel-itba Jul 2, 2023
a80ffed
Fixes code format according to clang-format
pvacatel-itba Jul 4, 2023
b202f1a
Reverts format changes to test/Settings.cpp
pablov-jotatec Jul 4, 2023
34625fb
Adds "Hide Untracked Files" option to DoubleTreeWidget
Murmele Jul 5, 2023
0a935f8
enable debug build by setting a settings
Murmele Jul 14, 2023
198fb7a
Update src/app/Application.cpp
Murmele Jul 14, 2023
74de914
Merge pull request #556 from Murmele/debugMessages
Murmele Jul 17, 2023
f77a2be
Merge pull request #516 from Murmele/OpenSSL1.1.1-stable
Murmele Jul 21, 2023
5188976
Update README.md
vthg2themax Jul 28, 2023
2929161
Update README.md
vthg2themax Jul 29, 2023
59486da
Move Readme Content Pointer To Requested Location
vthg2themax Jul 31, 2023
5cc9797
Forgot to Remove this Part.
vthg2themax Jul 31, 2023
492213e
Update README.md
vthg2themax Jul 31, 2023
8965265
Update README.md
vthg2themax Aug 1, 2023
daed9bc
Update README.md
vthg2themax Aug 1, 2023
87bdaff
Haiku doesn't need libdl, but needs libgnu for qsort_r
mmuman Aug 6, 2023
0de502c
Add a naive RepositoryWatcher using QFileSystemWatcher
mmuman Aug 6, 2023
3220038
Fix typo in documentation: Starring not Staring.
Aug 17, 2023
ba9f028
Merge pull request #620 from jpwhiting/work/whiting/fixtypo
Murmele Aug 22, 2023
6efe178
Merge pull request #613 from mmuman/haiku-port
Murmele Aug 22, 2023
a46dbc9
Rename build.sh to buildUbuntu.sh
vthg2themax Aug 22, 2023
4172841
fix script name
Murmele Aug 23, 2023
24f52d9
Merge pull request #605 from vthg2themax/patch-1
Murmele Aug 23, 2023
4591736
Imlement Dev Version changelog
Murmele Aug 29, 2023
ae0dd21
add changelog
Murmele Aug 29, 2023
6edac2c
add comment
Murmele Aug 29, 2023
09ab8e0
fix regex
Murmele Aug 29, 2023
4a34691
Use DEV instead of WIP
Murmele Aug 29, 2023
3e544af
fix regex
Murmele Aug 29, 2023
cc78ce2
Merge pull request #627 from Murmele/RegexAppdataDate
Murmele Aug 29, 2023
2769847
feat: add a 'Rename Branch' to the right-click context menu in the co…
mwerle Aug 17, 2023
5f5d5e9
feat: improve right-click menu for operations on references.
mwerle Aug 17, 2023
86dd4cb
feat: add rename branch to menu bar
mwerle Aug 17, 2023
6321d39
feat: give the `Rename Branch` dialog a better size.
mwerle Aug 17, 2023
baa10eb
feat: make `Checkout` menu multi-level if there are more branches
mwerle Aug 18, 2023
c9aaa86
refactor: rename submenu entries for `Checkout` and code clean up
mwerle Aug 18, 2023
7721dd2
refactor(CommitList): move duplicated code generating menu entries in…
mwerle Aug 18, 2023
8745c3c
chore: fix copyright information in the `RenameBranchDialog` file com…
mwerle Aug 18, 2023
42baad6
chore: clang-format recently modified files.
mwerle Aug 22, 2023
6185b84
build: update `cl-format.sh` to force v13 of clang-format
mwerle Aug 23, 2023
f71f73c
chore: source code formatting
mwerle Aug 28, 2023
4ef8b60
docs: update changelog with rename-branch work.
mwerle Aug 28, 2023
e6b5f83
Merge pull request #621 from mwerle/feature/rename_branch_menu
Murmele Aug 30, 2023
e21bea8
chore: fix compiler warnings
mwerle Aug 16, 2023
97accfa
refactor: re-add support compiling with QT < 5.14
mwerle Aug 22, 2023
3ffdbac
chore: clang-format recently modified files.
mwerle Aug 22, 2023
d729e63
chore: revert formatting changes of `Setting.cpp`
mwerle Aug 23, 2023
1627663
build: add configuration for pre-commit hook
mwerle Aug 23, 2023
ea56be2
doc: update README - contributing
mwerle Aug 23, 2023
98eb73b
enable -Werror=switch-enum
Murmele Aug 27, 2023
3953974
chore(compiler warnings): replace `-Wswitch-enum` with `-Wswitch` and…
mwerle Aug 29, 2023
fd6efb4
chore: fix more warnings.
mwerle Aug 29, 2023
6ceaa40
question: CommitList - correct variable to use?
mwerle Aug 29, 2023
fb9a799
chore: forgot clang-format on recent changes
mwerle Aug 29, 2023
6cf922f
fix: revert removing global textHeightFactorCheckBoxSize
mwerle Aug 31, 2023
820c0fd
Merge pull request #618 from mwerle/feature/clean_build
Murmele Aug 31, 2023
2b558bd
Reason:
wolfseifert Jan 17, 2023
feadf99
format
Murmele Oct 8, 2023
ad2a208
fix
Murmele Oct 8, 2023
7e2fec7
update openssl version to 3.0
Murmele Oct 8, 2023
2b2f5cd
fix compilation
Murmele Oct 8, 2023
ca253a8
fix compilation
Murmele Oct 8, 2023
c8df519
update github build file to support Qt6
Murmele Oct 8, 2023
3986e2a
Reason:
Murmele Oct 8, 2023
7bf3f9a
update action
Murmele Oct 8, 2023
318760f
try to remove xcbqpa
Murmele Oct 8, 2023
39e0348
use temporarly different branch from flathub with Qt6 upgrade
Murmele Oct 8, 2023
93e49b3
Wrong weekday in unittests
Murmele Oct 8, 2023
e468b2b
remove Win32 support because Qt6 does not support it anymore
Murmele Oct 8, 2023
f9ea366
add includes
Murmele Oct 8, 2023
a0dde37
Fix typo
Murmele Oct 30, 2023
7afb87c
try to fix compilation error on windows
Murmele Oct 31, 2023
b08b683
try to fix compilation on mac
Murmele Oct 31, 2023
cd952a7
Merge pull request #655 from Murmele/typo
Murmele Nov 1, 2023
706f288
fix compilation on win
Murmele Nov 1, 2023
e99a59f
fix ninja check for windows
Murmele Nov 1, 2023
57cf7c9
use always windows
Murmele Nov 1, 2023
dfb45a6
revert
Murmele Nov 1, 2023
8e467ce
revert
Murmele Nov 1, 2023
35680a2
revert and format
Murmele Nov 1, 2023
49d9941
enable updating translations
Murmele Nov 2, 2023
f53493a
Referring repos with their git-dir instead of their work-tree.
ysalmon Aug 7, 2023
c985a5d
clang-format
ysalmon Aug 7, 2023
bd09d30
typo
ysalmon Aug 7, 2023
9edf99f
Update src/conf/RecentRepositories.cpp
ysalmon Aug 31, 2023
8374baa
use also as variable name mGitPath
Murmele Nov 12, 2023
f07f4ed
add comment
Murmele Nov 12, 2023
0fd2d55
instead of ignoring the .git folder at multiple places, ignore it dir…
Murmele Nov 12, 2023
897f658
Reason:
Jul 11, 2023
7b82477
disable updating over gui
Jul 11, 2023
a21cf7e
do not publish linux artifacts
Jul 11, 2023
ceb597b
publish also appimagetool
Jul 11, 2023
52db196
cleanup
Jul 11, 2023
34aef5b
trying to fix qt.glx: qglx_findConfig: Failed to finding matching FBC…
Jul 13, 2023
0e6e1e4
add Debugging
Murmele Jul 22, 2023
2326e01
Debug build
Murmele Jul 24, 2023
f81c01f
use release build
Murmele Nov 12, 2023
3f2d236
Revert "add Debugging"
Murmele Jul 22, 2023
1b74bf7
Revert "trying to fix qt.glx: qglx_findConfig: Failed to finding matc…
Jul 13, 2023
2394355
Appimage support
Murmele Nov 12, 2023
f2f19ab
Implement setting language with the gui
Murmele Nov 12, 2023
8d99b97
update translations
Murmele Nov 12, 2023
6eb06f9
format also languages file
Murmele Nov 12, 2023
e7fd8da
Merge pull request #657 from Murmele/translations
Murmele Nov 12, 2023
1d6d53b
Use columns for file name, directory, and state when files are shown …
gh-devnull Aug 31, 2023
c416cc6
Add sort by column. Force all columns headers to be initialized.
gh-devnull Sep 4, 2023
d54bb20
Use function to create actions to make it more readable
Murmele Nov 12, 2023
1bad8fa
remove mDelegateCol because it is already set to 0 in the header
Murmele Nov 12, 2023
7bb4a7a
Use QAbstractItemModel because then mConstructed is not required and …
Murmele Nov 12, 2023
1f3e81a
Add setting for multicolumn
Murmele Nov 12, 2023
ad5cfe3
forgotten to return value
Murmele Nov 12, 2023
9636a11
reset selection, because when a list item is selected and treeview is…
Murmele Nov 12, 2023
d598ac2
updateView when updating the rest
Murmele Nov 12, 2023
986cbf1
updateView() must be done before expandAll is done, otherwise the col…
Murmele Nov 12, 2023
c836908
Fix bug
Murmele Nov 12, 2023
73e3cf3
Format
Murmele Nov 12, 2023
23bfb4e
Publish appimage also for development release
Murmele Nov 12, 2023
88073ef
update action
Murmele Nov 12, 2023
a63edf2
when clicking on template, also add filenames, otherwise nothing is s…
Murmele Nov 12, 2023
5286ed1
Add hint that first template will be applied automatically
Murmele Nov 12, 2023
bbb6b88
Merge pull request #667 from Murmele/work/templateManualApply
Murmele Nov 13, 2023
75a6d21
Merge branch 'master' into patch-gittyup-qt6
Murmele Nov 14, 2023
6984d51
Merge pull request #664 from Murmele/multicolumn
Murmele Nov 20, 2023
69d3e21
Merge pull request #614 from ysalmon/betterHistory
Murmele Nov 20, 2023
e5fe010
Merge pull request #665 from Murmele/appimagerelease
Murmele Nov 20, 2023
71da998
Merge pull request #666 from Murmele/updateAction
Murmele Nov 21, 2023
48a8bda
Merge remote-tracking branch 'refs/remotes/origin/master'
Murmele Nov 21, 2023
fe3f6e4
fix compilation
Murmele Nov 21, 2023
faac6c5
add comments
Murmele Dec 10, 2023
b4e9885
set original commit message as default
Murmele Dec 10, 2023
66bc256
Rebase: Use original commit message as default message
Murmele Dec 10, 2023
6cdd2c7
dirty fix for macos
Murmele Dec 13, 2023
f1e54d8
dirty fix for macos
0verEngineer Dec 15, 2023
936125d
Rebase to upstream master
0verEngineer Dec 15, 2023
3a38653
format
Murmele Oct 8, 2023
b8f9644
fix
Murmele Oct 8, 2023
1373928
update openssl version to 3.0
Murmele Oct 8, 2023
f99eb4a
fix compilation
Murmele Oct 8, 2023
a7bb1de
fix compilation
Murmele Oct 8, 2023
5ba277e
rebase
Murmele Oct 8, 2023
4c33bcd
Reason:
Murmele Oct 8, 2023
feac7e6
try to remove xcbqpa
Murmele Oct 8, 2023
6a77845
use temporarly different branch from flathub with Qt6 upgrade
Murmele Oct 8, 2023
00ccbc3
Wrong weekday in unittests
Murmele Oct 8, 2023
73fb281
remove Win32 support because Qt6 does not support it anymore
Murmele Oct 8, 2023
f216d4d
add includes
Murmele Oct 8, 2023
2df645b
try to fix compilation error on windows
Murmele Oct 31, 2023
9660d98
try to fix compilation on mac
Murmele Oct 31, 2023
cec89ce
fix compilation on win
Murmele Nov 1, 2023
82f09b9
fix ninja check for windows
Murmele Nov 1, 2023
c9f0db6
use always windows
Murmele Nov 1, 2023
2c93534
revert
Murmele Nov 1, 2023
16503ac
revert
Murmele Nov 1, 2023
2bb70a2
revert and format
Murmele Nov 1, 2023
dac85de
fix compilation
Murmele Nov 21, 2023
d05094b
dirty fix for macos
Murmele Dec 13, 2023
0552f31
dirty fix for macos
0verEngineer Dec 15, 2023
3e72c9e
Merge branch 'patch-gittyup-qt6' of [email protected]:wolfseifert/Gittyu…
0verEngineer Dec 15, 2023
271c7a5
Appimage build fix
0verEngineer Dec 15, 2023
2fe4f03
Potential Appimage fix
0verEngineer Dec 15, 2023
bf8fb25
Adds listing of plugins dir in appimage build step for debugging
0verEngineer Dec 15, 2023
27698df
Potential appimage build fix
0verEngineer Dec 15, 2023
29e1925
potential appimage build fix
0verEngineer Dec 16, 2023
0898973
try lowercase
Murmele Dec 23, 2023
c6cbc83
forgotten at another place as well
Murmele Dec 23, 2023
e516467
Revert "try lowercase"
Murmele Dec 23, 2023
a697e06
Revert "forgotten at another place as well"
Murmele Dec 23, 2023
b624c25
update license date
Murmele Jan 21, 2024
6281b1f
list folders
Murmele Jan 21, 2024
8b0ec9c
Reason:
Murmele Jan 21, 2024
9c349e5
format
Murmele Jan 21, 2024
a4efa04
WIP
Murmele Jan 21, 2024
6a04614
Must be so.6
Murmele Jan 21, 2024
7b12168
Disable using qt_import_plugins for UNIX again
Murmele Jan 21, 2024
00675a7
Try to change qt version without wildcard
Murmele Feb 6, 2024
7144b86
Adds macOS theme switch listening
0verEngineer Jan 17, 2023
2d4be03
Fixes formatting
0verEngineer Jan 17, 2023
dc3004a
Fix formatting
0verEngineer Jan 18, 2023
0671ebc
Remove ifdefs temporarily
0verEngineer Jan 20, 2023
aea59ef
Test TextEditor theme update
0verEngineer Jan 23, 2023
f1d9eeb
Description: forgotten to set style
Jan 27, 2023
424d89a
Merge branch 'mac_theme_switch_listener' of [email protected]:0verEngine…
0verEngineer Feb 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 86 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,18 @@ jobs:
runs-on: ubuntu-latest
container:
# image: bilelmoussaoui/flatpak-github-actions:kde-5.15-21.08
image: exactlyonekas/gittyup-flatpak-builder:latest
image: archlinux:latest
options: --privileged
steps:

- name: Update
run: |
pacman --noconfirm -Suy
pacman --noconfirm -S flatpak flatpak-builder xorg-server-xvfb
flatpak install --assumeyes org.kde.Sdk//5.15-21.08
flatpak install --assumeyes org.freedesktop.Sdk.Extension.golang//21.08
flatpak install --assumeyes org.kde.Platform//5.15-21.08

- name: Show environment variables
run: >
echo IS_RELEASE: ${{ env.IS_RELEASE }}
Expand All @@ -64,10 +73,16 @@ jobs:
owner: 'flathub'
repository: 'com.github.Murmele.Gittyup'

# just until the new release is out
- name: Checkout restructureCMake
run: |
cd com.github.Murmele.Gittyup
git checkout Qt6

- name: Replace git tag by the commit id on which it runs
if: github.ref_type != 'tag'
run: >
sed -i 's@tag: gittyup_v[1-9]*.[0-9]*.[0-9]*@commit: "${{ (github.event.pull_request && github.event.pull_request.head.sha) || github.sha }}"@' com.github.Murmele.Gittyup/com.github.Murmele.Gittyup.yml
sed -i 's@tag: .*@commit: "${{ (github.event.pull_request && github.event.pull_request.head.sha) || github.sha }}"@' com.github.Murmele.Gittyup/com.github.Murmele.Gittyup.yml

- name: Use correct git tag
if: github.ref_type == 'tag'
Expand All @@ -88,6 +103,11 @@ jobs:
run: >
sed -i 's@desktop-file-name-suffix: ""@desktop-file-name-suffix: " (Development)"@' com.github.Murmele.Gittyup/com.github.Murmele.Gittyup.yml

- name: Enable automatic update
if: github.ref_type != 'tag'
run: >
sed -i 's@-DENABLE_UPDATE_OVER_GUI=OFF@-DENABLE_UPDATE_OVER_GUI=ON@' com.github.Murmele.Gittyup/com.github.Murmele.Gittyup.yml

- name: Show Flatpak manifest
run: cat com.github.Murmele.Gittyup/com.github.Murmele.Gittyup.yml

Expand All @@ -112,19 +132,18 @@ jobs:
fail-fast: false
matrix:
qt:
- version: 5.15.2
check_only: false

- version: 5.12.0
check_only: true
- version: 6.5.3

env:
- name: linux
os: ubuntu-latest
ninja_platform: linux
qt_platform: linux
qt_arch: gcc_64
openssl_arch: linux-x86_64
cmake_flags: "-DGENERATE_APPDATA=ON"
ld_library_arch: linux-x86-64
cmake_flags: "-DGENERATE_APPDATA=ON -DCMAKE_INSTALL_PREFIX=/usr -DUSE_SYSTEM_QT=ON -DENABLE_UPDATE_OVER_GUI=OFF"
pack: 0
cmake_env: {}

- name: macos
Expand All @@ -150,23 +169,6 @@ jobs:
CXX: clang++
pack: 1

- name: win32
os: windows-latest
ninja_platform: win
qt_platform: windows
qt_arch: win32_msvc2019
qt_arch_check_only: win32_msvc2017
openssl_arch: VC-WIN32
msvc_arch: x86
cmake_flags: "-DUSE_BUNDLED_ZLIB=1"
cmake_env:
CMAKE_RC_FLAGS: "/C 1252"
CC: clang
CXX: clang++
CMAKE_C_FLAGS: -m32
CMAKE_CXX_FLAGS: -m32
pack: 1

steps:
# otherwise the testcases will fail, because signature is invalid
- name: Set git name and email
Expand All @@ -193,9 +195,8 @@ jobs:
perl-version: '5.30'

- name: Install Qt
uses: jurplel/install-qt-action@v2.13.0
uses: jurplel/install-qt-action@v3.3.0
timeout-minutes: 10
if: "!matrix.qt.check_only"
with:
version: ${{ matrix.qt.version }}
target: desktop
Expand All @@ -204,18 +205,6 @@ jobs:
install-deps: true
modules: qtwebengine

- name: Install Qt
uses: jurplel/[email protected]
timeout-minutes: 10
if: matrix.qt.check_only
with:
version: ${{ matrix.qt.version }}
target: desktop
host: ${{ matrix.env.qt_platform }}
arch: ${{ matrix.env.qt_arch_check_only }}
install-deps: true
modules: qtwebengine

- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
with:
Expand Down Expand Up @@ -245,10 +234,6 @@ jobs:
run: |
cd dep/openssl/openssl

# this is necessary until https://github.com/openssl/openssl/issues/18720
# is fixed in OpenSSL 1.1.1r
export CFLAGS=-Wno-error=implicit-function-declaration

./Configure ${{ matrix.env.openssl_arch }} no-shared
make

Expand All @@ -264,7 +249,7 @@ jobs:
run: |
mkdir -p build/release
cd build/release
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DDEBUG_OUTPUT=OFF -DGITTYUP_CI_TESTS=ON ${{ env.CMAKE_FLAGS }} ${{ matrix.env.cmake_flags }} ../..
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DUPDATE_TRANSLATIONS=ON -DGITTYUP_CI_TESTS=ON ${{ env.CMAKE_FLAGS }} ${{ matrix.env.cmake_flags }} ../..

- name: Build Information
run: |
Expand All @@ -280,7 +265,7 @@ jobs:

# Command copied from flathub build process
- name: Validate appdata file
if: matrix.env.ninja_platform == 'linux' && !matrix.qt.check_only
if: matrix.env.ninja_platform == 'linux'
run: |
echo "Show generated appdata file"
cat ./build/release/rsrc/linux/com.github.Murmele.Gittyup.appdata.xml
Expand All @@ -291,32 +276,81 @@ jobs:
flatpak run --env=G_DEBUG=fatal-criticals org.freedesktop.appstream-glib validate ./build/release/rsrc/linux/com.github.Murmele.Gittyup.appdata.xml

- name: Publish build artifacts
if: matrix.env.pack && !matrix.qt.check_only
if: matrix.env.pack
uses: actions/upload-artifact@v3
with:
path: build/release/pack/Gittyup-*
name: Gittyup ${{ matrix.env.name }}

- name: Publish version file
if: matrix.env.pack && !matrix.qt.check_only
if: matrix.env.pack
uses: actions/upload-artifact@v3
with:
path: build/release/VERSION.txt
path: build/release/Version.txt
name: Gittyup-VERSION

- name: Check Version file
run: |
cd build/release
cat ./Version.txt

- name: Test
if: matrix.env.ninja_platform != 'win' && matrix.env.ninja_platform != 'mac'
uses: GabrielBB/xvfb-action@v1
with:
working-directory: build/release
run: ninja check
run: ninja check --verbose

- name: Test (Windows)
if: matrix.env.ninja_platform == 'win'
run: |
cd build/release
ninja check_no_win32_offscreen

- name: Build Appimage
if: matrix.env.ninja_platform == 'linux'
run: |
cd build/release
sudo apt -y install appstream
sudo apt -y install libfuse2
sudo apt -y install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-cursor0 libxkbcommon0 libx11-xcb1
sudo apt -y install libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxcb-xrm0 libxcb-xv0 libxcb-xvmc0 libxcb1

mkdir -p AppDir
DESTDIR=AppDir ninja install

export QTDIR=$RUNNER_WORKSPACE/Qt/${{ matrix.qt.version }}/${{ matrix.env.qt_arch }}

rm -rf ./AppDir/usr/include/
strip ./AppDir/usr/bin/cmark ./AppDir/usr/bin/gittyup ./AppDir/usr/bin/indexer ./AppDir/usr/bin/relauncher

wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
chmod +x appimagetool-*.AppImage
echo Show QTDIR
ls $QTDIR
echo Show QTDIR plugins
ls $QTDIR/plugins
echo Show QTDIR plugins platforms
ls $QTDIR/plugins/platforms
QTDIR=$QTDIR ./appimagetool-*.AppImage -s deploy ./AppDir/usr/share/applications/*.desktop --appimage-extract-and-run # Bundle EVERYTHING

# Modify the AppDir: move ld-linux into the same directory as the payload application
# and change AppRun accordingly; so that, e.g., Qt qApp->applicationDirPath() works
mv ./AppDir/lib64/ld-${{ matrix.env.ld_library_arch }}.so.2 ./AppDir/usr/bin/
sed -i -e 's@^LD_LINUX.*@LD_LINUX=$(find "$HERE/usr/bin" -name "ld-*.so.*" | head -n 1)@g' ./AppDir/AppRun

rm ./AppDir/usr/share/metainfo/gittyup.appdata.xml
VERSION=$(cat ./Version.txt)
VERSION="$VERSION" ./appimagetool-*.AppImage ./AppDir # turn AppDir into AppImage
#ls -lh Gittyup-*

- name: Publish Appimage
if: matrix.env.ninja_platform == 'linux'
uses: actions/upload-artifact@v3
with:
path: build/release/*.AppImage
name: GittyupAppImage

publish:
# https://github.com/marvinpinto/actions/issues/177
needs: [flatpak, build]
Expand Down Expand Up @@ -347,7 +381,7 @@ jobs:
# version is exported from cmake to file
- name: Retrieve version
run: |
echo "::set-output name=VERSION::$(cat artifacts/Gittyup-VERSION/VERSION.txt)"
echo "::set-output name=VERSION::$(cat artifacts/Gittyup-VERSION/Version.txt)"
id: version

- name: Update GitHub release (latest tag)
Expand All @@ -359,10 +393,10 @@ jobs:
automatic_release_tag: 'development'
files: |
**/artifacts/Gittyup win64/Gittyup*.exe
**/artifacts/Gittyup win32/Gittyup*.exe
**/artifacts/Gittyup macos/Gittyup*.dmg
**/artifacts/Gittyup Flatpak/com.github.Murmele.Gittyup.yml
**/Gittyup-x86_64/*.flatpak
**/artifacts/GittyupAppImage/*

- name: Update GitHub release (version tag)
uses: marvinpinto/action-automatic-releases@latest
Expand All @@ -374,10 +408,10 @@ jobs:
automatic_release_tag: ${{ github.ref_name }}
files: |
**/artifacts/Gittyup win64/Gittyup*.exe
**/artifacts/Gittyup win32/Gittyup*.exe
**/artifacts/Gittyup macos/Gittyup*.dmg
**/artifacts/Gittyup Flatpak/com.github.Murmele.Gittyup.yml
**/Gittyup-x86_64/*.flatpak
**/artifacts/GittyupAppImage/*

# needed otherwise the docs folder is not available
- name: Checkout repository
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
build
.cache
.DS_Store
.project
.vscode/
CMakeLists.txt.user
cmake-build-debug/
cmake-build-release/
build
.idea/
.venv
compile_commands.json

7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.1
hooks:
- id: clang-format
args: [ -i ]

Loading
Loading