forked from Chatterino/chatterino2
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
166 changed files
with
3,475 additions
and
1,426 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[Flatpak Ref] | ||
Name=com.chatterino.chatterino | ||
Branch=nightly | ||
Branch=beta | ||
Title=com.chatterino.chatterino from flathub | ||
IsRuntime=false | ||
Url=https://dl.flathub.org/repo/ | ||
SuggestRemoteName=flathub | ||
Url=https://dl.flathub.org/beta-repo/ | ||
SuggestRemoteName=flathub-beta | ||
GPGKey=mQINBFlD2sABEADsiUZUOYBg1UdDaWkEdJYkTSZD68214m8Q1fbrP5AptaUfCl8KYKFMNoAJRBXn9FbE6q6VBzghHXj/rSnA8WPnkbaEWR7xltOqzB1yHpCQ1l8xSfH5N02DMUBSRtD/rOYsBKbaJcOgW0K21sX+BecMY/AI2yADvCJEjhVKrjR9yfRX+NQEhDcbXUFRGt9ZT+TI5yT4xcwbvvTu7aFUR/dH7+wjrQ7lzoGlZGFFrQXSs2WI0WaYHWDeCwymtohXryF8lcWQkhH8UhfNJVBJFgCY8Q6UHkZG0FxMu8xnIDBMjBmSZKwKQn0nwzwM2afskZEnmNPYDI8nuNsSZBZSAw+ThhkdCZHZZRwzmjzyRuLLVFpOj3XryXwZcSefNMPDkZAuWWzPYjxS80cm2hG1WfqrG0Gl8+iX69cbQchb7gbEb0RtqNskTo9DDmO0bNKNnMbzmIJ3/rTbSahKSwtewklqSP/01o0WKZiy+n/RAkUKOFBprjJtWOZkc8SPXV/rnoS2dWsJWQZhuPPtv3tefdDiEyp7ePrfgfKxuHpZES0IZRiFI4J/nAUP5bix+srcIxOVqAam68CbAlPvWTivRUMRVbKjJiGXIOJ78wAMj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Fu3MJo6FKTFdi4CBAEmpWHFW7FcRmd+cQXeFrHLN3iNVWryy0HK/CUEJmiZEmpNiXecl4vPIIuyF0zgSCztQtKoMr+injpmQGC/rF/ELBVZTUSLNB350S0Ztvw0FKWDAJSxFmoxt3xycqvvt47rxTrhi78nkk6jATKGyvP55sO+K7Q7Wh0DXA69hvPrYW2eu8jGCdVGxi6HX7L1qcfEd0378S71dZ3g9o6KKl1OsDWWQ6MJ6FGBZedl/ibRfs8p5+sbCX3lQSjEFy3rx6n0rUrXx8U2qb+RCLzJlmC5MNBOTDJwHPcX6gKsUcXZrEQALmRHoo3SrewO41RCr+5nUlqiqV3AohBMhnQbGzyHf2+drutIaoh7Rj80XRh2bkkuPLwlNPf+bTXwNVGse4bej7B3oV6Ae1N7lTNVF4Qh+1OowtGjmfJPWo0z1s6HFJVxoIof9z58Msvgao0zrKGqaMWaNQ6LUeC9g9Aj/9Uqjbo8X54aLiYs8Z1WNc06jKP+gv8AWLtv6CR+l2kLez1YMDucjm7v6iuCMVAmZdmxhg5I/X2+OM3vBsqPDdQpr2TPDLX3rCrSBiS0gOQ6DwN5N5QeTkxmY/7QO8bgLo/Wzu1iilH4vMKW6LBKCaRx5UEJxKpL4wkgITsYKneIt3NTHo5EOuaYk+y2+Dvt6EQFiuMsdbfUjs3seIHsghX/cbPJa4YUqZAL8C4OtVHaijwGo0ymt9MWvS9yNKMyT0JhN2/BdeOVWrHk7wXXJn/ZjpXilicXKPx4udCF76meE+6N2u/T+RYZ7fP1QMEtNZNmYDOfA6sViuPDfQSHLNbauJBo/n1sRYAsL5mcG22UDchJrlKvmK3EOADCQg+myrm8006LltubNB4wWNzHDJ0Ls2JGzQZCd/xGyVmUiidCBUrD537WdknOYE4FD7P0cHaM9brKJ/M8LkEH0zUlo73bY4XagbnCqve6PvQb5G2Z55qhWphd6f4B6DGed86zJEa/RhS | ||
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo |
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,3 +1,5 @@ | ||
# Description | ||
|
||
<!-- If applicable, please include a summary of what you've changed and what issue is fixed. In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested --> | ||
<!-- | ||
Please include a summary of what you've changed and what issue is fixed. | ||
In the case of a bug fix, please include steps to reproduce the bug so the pull request can be tested. | ||
If this PR fixes an issue on GitHub, mention this here to automatically close it: "Fixes #1234.". | ||
--> |
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 |
---|---|---|
@@ -0,0 +1,148 @@ | ||
--- | ||
name: clang-tidy | ||
|
||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
group: clang-tidy-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CHATTERINO_REQUIRE_CLEAN_GIT: On | ||
C2_BUILD_WITH_QT6: Off | ||
|
||
jobs: | ||
build: | ||
name: "clang-tidy ${{ matrix.os }}, Qt ${{ matrix.qt-version }})" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
# Ubuntu 22.04, Qt 5.15 | ||
- os: ubuntu-22.04 | ||
qt-version: 5.15.2 | ||
plugins: false | ||
|
||
fail-fast: false | ||
|
||
steps: | ||
- name: Enable plugin support | ||
if: matrix.plugins | ||
run: | | ||
echo "C2_PLUGINS=ON" >> "$GITHUB_ENV" | ||
shell: bash | ||
|
||
- name: Set BUILD_WITH_QT6 | ||
if: startsWith(matrix.qt-version, '6.') | ||
run: | | ||
echo "C2_BUILD_WITH_QT6=ON" >> "$GITHUB_ENV" | ||
shell: bash | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 # allows for tags access | ||
|
||
- name: Install Qt5 | ||
if: startsWith(matrix.qt-version, '5.') | ||
uses: jurplel/[email protected] | ||
with: | ||
cache: true | ||
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2 | ||
version: ${{ matrix.qt-version }} | ||
|
||
- name: Install Qt 6.5.3 imageformats | ||
if: startsWith(matrix.qt-version, '6.') | ||
uses: jurplel/[email protected] | ||
with: | ||
cache: false | ||
modules: qtimageformats | ||
set-env: false | ||
version: 6.5.3 | ||
extra: --noarchives | ||
|
||
- name: Install Qt6 | ||
if: startsWith(matrix.qt-version, '6.') | ||
uses: jurplel/[email protected] | ||
with: | ||
cache: true | ||
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2 | ||
modules: qt5compat qtimageformats | ||
version: ${{ matrix.qt-version }} | ||
|
||
# LINUX | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install \ | ||
cmake \ | ||
virtualenv \ | ||
rapidjson-dev \ | ||
libfuse2 \ | ||
libssl-dev \ | ||
libboost-dev \ | ||
libxcb-randr0-dev \ | ||
libboost-system-dev \ | ||
libboost-filesystem-dev \ | ||
libpulse-dev \ | ||
libxkbcommon-x11-0 \ | ||
build-essential \ | ||
libgl1-mesa-dev \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 | ||
- name: Apply Qt5 patches | ||
if: startsWith(matrix.qt-version, '5.') | ||
run: | | ||
patch "$Qt5_DIR/include/QtConcurrent/qtconcurrentthreadengine.h" .patches/qt5-on-newer-gcc.patch | ||
shell: bash | ||
|
||
- name: Build | ||
run: | | ||
mkdir build | ||
cd build | ||
CXXFLAGS=-fno-sized-deallocation cmake \ | ||
-DCMAKE_INSTALL_PREFIX=appdir/usr/ \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DPAJLADA_SETTINGS_USE_BOOST_FILESYSTEM=On \ | ||
-DUSE_PRECOMPILED_HEADERS=OFF \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \ | ||
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \ | ||
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \ | ||
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \ | ||
.. | ||
shell: bash | ||
|
||
- name: clang-tidy review | ||
timeout-minutes: 20 | ||
uses: ZedThree/[email protected] | ||
with: | ||
build_dir: build-clang-tidy | ||
config_file: ".clang-tidy" | ||
split_workflow: true | ||
exclude: "lib/*,tools/crash-handler/*" | ||
cmake_command: >- | ||
cmake -S. -Bbuild-clang-tidy | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DPAJLADA_SETTINGS_USE_BOOST_FILESYSTEM=On | ||
-DUSE_PRECOMPILED_HEADERS=OFF | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=On | ||
-DCHATTERINO_LTO=Off | ||
-DCHATTERINO_PLUGINS=On | ||
-DBUILD_WITH_QT6=Off | ||
-DBUILD_TESTS=On | ||
-DBUILD_BENCHMARKS=On | ||
apt_packages: >- | ||
qttools5-dev, qt5-image-formats-plugins, libqt5svg5-dev, | ||
libsecret-1-dev, | ||
libboost-dev, libboost-system-dev, libboost-filesystem-dev, | ||
libssl-dev, | ||
rapidjson-dev, | ||
libbenchmark-dev | ||
- name: clang-tidy-review upload | ||
uses: ZedThree/clang-tidy-review/[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 |
---|---|---|
|
@@ -3,13 +3,15 @@ name: Post clang-tidy review comments | |
|
||
on: | ||
workflow_run: | ||
workflows: ["Build"] | ||
workflows: ["clang-tidy"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# Only when a build succeeds | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- uses: ZedThree/clang-tidy-review/[email protected] | ||
|
Oops, something went wrong.