forked from SevenTV/chatterino7
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the creation of appimages as upstream only creates appimages with Qt 5.12.12 and we don't build with this Qt version. If you're using the appimage, consider switching to flatpack instead.
- Loading branch information
Showing
29 changed files
with
226 additions
and
81 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
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,13 +1,21 @@ | ||
FROM chatterino-ubuntu-20.04-build | ||
|
||
ADD .CI /src/.CI | ||
# In CI, this is set from the aqtinstall action | ||
ENV Qt5_DIR=/opt/qt512 | ||
|
||
WORKDIR /src/build | ||
|
||
# RUN apt-get install -y wget | ||
ADD .CI /src/.CI | ||
|
||
# create appimage | ||
# RUN pwd && ./../.CI/CreateAppImage.sh | ||
# Install dependencies necessary for AppImage packaging | ||
RUN apt-get update && apt-get -y install --no-install-recommends \ | ||
curl \ | ||
libfontconfig \ | ||
libxrender1 \ | ||
file | ||
|
||
# package deb | ||
RUN pwd && ./../.CI/CreateUbuntuDeb.sh | ||
RUN ./../.CI/CreateUbuntuDeb.sh | ||
|
||
# package appimage | ||
RUN ./../.CI/CreateAppImage.sh |
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,8 +1,21 @@ | ||
FROM chatterino-ubuntu-22.04-build | ||
|
||
ADD .CI /src/.CI | ||
# In CI, this is set from the aqtinstall action | ||
ENV Qt5_DIR=/opt/qt515 | ||
|
||
WORKDIR /src/build | ||
|
||
ADD .CI /src/.CI | ||
|
||
# Install dependencies necessary for AppImage packaging | ||
RUN apt-get update && apt-get -y install --no-install-recommends \ | ||
curl \ | ||
libxcb-shape0 \ | ||
libfontconfig1 \ | ||
file | ||
|
||
# package deb | ||
RUN ./../.CI/CreateUbuntuDeb.sh | ||
|
||
# package appimage | ||
RUN ./../.CI/CreateAppImage.sh |
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ concurrency: | |
env: | ||
C2_ENABLE_LTO: ${{ github.ref == 'refs/heads/master' }} | ||
CHATTERINO_REQUIRE_CLEAN_GIT: On | ||
C2_BUILD_WITH_QT6: Off | ||
|
||
jobs: | ||
build: | ||
|
@@ -34,6 +35,11 @@ jobs: | |
qt-version: 5.15.2 | ||
pch: true | ||
force-lto: false | ||
# Ubuntu 22.04, Qt 6.2.4 | ||
- os: ubuntu-22.04 | ||
qt-version: 6.2.4 | ||
pch: false | ||
force-lto: false | ||
# Test for disabling Precompiled Headers & enabling link-time optimization | ||
- os: ubuntu-22.04 | ||
qt-version: 5.15.2 | ||
|
@@ -68,18 +74,34 @@ jobs: | |
echo "vs_version=2022" >> "$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@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 # allows for tags access | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
- 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 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 | ||
version: ${{ matrix.qt-version }} | ||
|
||
# WINDOWS | ||
- name: Cache conan packages part 1 | ||
if: startsWith(matrix.os, 'windows') | ||
|
@@ -126,6 +148,7 @@ jobs: | |
-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" ` | ||
-DBUILD_WITH_CRASHPAD="$Env:C2_ENABLE_CRASHPAD" ` | ||
-DCHATTERINO_LTO="$Env:C2_ENABLE_LTO" ` | ||
-DBUILD_WITH_QT6="$Env:C2_BUILD_WITH_QT6" ` | ||
.. | ||
set cl=/MP | ||
nmake /S /NOLOGO | ||
|
@@ -211,6 +234,7 @@ jobs: | |
-DUSE_PRECOMPILED_HEADERS=${{ matrix.pch }} \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \ | ||
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \ | ||
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \ | ||
.. | ||
make -j"$(nproc)" | ||
shell: bash | ||
|
@@ -233,27 +257,13 @@ jobs: | |
clang-tidy-review-output.json | ||
clang-tidy-review-metadata.json | ||
- name: Package - AppImage (Ubuntu) | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes' | ||
run: | | ||
cd build | ||
sh ./../.CI/CreateAppImage.sh | ||
shell: bash | ||
|
||
- name: Package - .deb (Ubuntu) | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes' | ||
run: | | ||
cd build | ||
sh ./../.CI/CreateUbuntuDeb.sh | ||
shell: bash | ||
|
||
- name: Upload artifact - AppImage (Ubuntu) | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Chatterino-x86_64-${{ matrix.qt-version }}.AppImage | ||
path: build/Chatterino-x86_64.AppImage | ||
|
||
- name: Upload artifact - .deb (Ubuntu) | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes' | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -279,6 +289,7 @@ jobs: | |
-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl \ | ||
-DUSE_PRECOMPILED_HEADERS=${{ matrix.pch }} \ | ||
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \ | ||
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \ | ||
.. | ||
make -j"$(sysctl -n hw.logicalcpu)" | ||
shell: bash | ||
|
@@ -319,11 +330,6 @@ jobs: | |
name: chatterino-windows-x86-64-5.15.2-symbols.pdb.7z | ||
path: release-artifacts/ | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: Chatterino-x86_64-5.15.2.AppImage | ||
path: release-artifacts/ | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: Chatterino-ubuntu-22.04-Qt-5.15.2.deb | ||
|
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
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
Oops, something went wrong.