2019-12-28 14:54:03 +01:00
|
|
|
---
|
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-13 13:14:18 +01:00
|
|
|
branches:
|
|
|
|
- master
|
2023-10-01 11:19:26 +02:00
|
|
|
- "bugfix-release/*"
|
|
|
|
- "release/*"
|
2019-12-28 14:54:03 +01:00
|
|
|
pull_request:
|
2022-06-14 14:48:21 +02:00
|
|
|
workflow_dispatch:
|
2023-07-29 13:02:43 +02:00
|
|
|
merge_group:
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2022-12-02 20:30:28 +01:00
|
|
|
concurrency:
|
2022-05-21 11:33:21 +02:00
|
|
|
group: build-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-12-24 18:42:59 +01:00
|
|
|
env:
|
2023-10-01 11:19:26 +02:00
|
|
|
C2_ENABLE_LTO: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/bugfix-release/') || startsWith(github.ref, 'refs/heads/release/') }}
|
2023-02-16 14:56:20 +01:00
|
|
|
CHATTERINO_REQUIRE_CLEAN_GIT: On
|
2023-02-19 20:19:18 +01:00
|
|
|
C2_BUILD_WITH_QT6: Off
|
2023-04-04 21:29:49 +02:00
|
|
|
# Last known good conan version
|
|
|
|
# 2.0.3 has a bug on Windows (conan-io/conan#13606)
|
|
|
|
CONAN_VERSION: 2.0.2
|
2022-12-24 18:42:59 +01:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
jobs:
|
2024-02-10 12:47:15 +01:00
|
|
|
build-ubuntu-docker:
|
|
|
|
name: "Build Ubuntu in Docker"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ${{ matrix.container }}
|
2019-12-28 14:54:03 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-03-28 16:58:51 +02:00
|
|
|
include:
|
2022-12-07 12:53:50 +01:00
|
|
|
- os: ubuntu-20.04
|
2024-02-10 12:47:15 +01:00
|
|
|
container: ghcr.io/chatterino/chatterino2-build-ubuntu-20.04:latest
|
|
|
|
qt-version: 6.6.1
|
2023-02-11 23:50:01 +01:00
|
|
|
force-lto: false
|
2024-02-10 12:47:15 +01:00
|
|
|
plugins: true
|
2023-05-08 14:08:43 +02:00
|
|
|
skip-artifact: false
|
|
|
|
skip-crashpad: false
|
2024-02-10 12:47:15 +01:00
|
|
|
build-appimage: false
|
|
|
|
build-deb: true
|
2023-02-11 23:50:01 +01:00
|
|
|
- os: ubuntu-22.04
|
2024-02-10 12:47:15 +01:00
|
|
|
container: ghcr.io/chatterino/chatterino2-build-ubuntu-22.04:latest
|
|
|
|
qt-version: 6.6.1
|
2023-02-11 23:50:01 +01:00
|
|
|
force-lto: false
|
2023-04-02 15:31:53 +02:00
|
|
|
plugins: true
|
2023-05-08 14:08:43 +02:00
|
|
|
skip-artifact: false
|
|
|
|
skip-crashpad: false
|
2024-02-10 12:47:15 +01:00
|
|
|
build-appimage: true
|
|
|
|
build-deb: true
|
|
|
|
env:
|
|
|
|
C2_ENABLE_LTO: ${{ matrix.force-lto }}
|
|
|
|
C2_PLUGINS: ${{ matrix.plugins }}
|
|
|
|
C2_ENABLE_CRASHPAD: ${{ matrix.skip-crashpad == false }}
|
|
|
|
C2_BUILD_WITH_QT6: ${{ startsWith(matrix.qt-version, '6.') }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
fetch-depth: 0 # allows for tags access
|
|
|
|
|
|
|
|
- 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" \
|
|
|
|
-DCMAKE_PREFIX_PATH="$Qt6_DIR/lib/cmake" \
|
|
|
|
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \
|
|
|
|
-DCHATTERINO_STATIC_QT_BUILD=On \
|
|
|
|
..
|
|
|
|
make -j"$(nproc)"
|
|
|
|
|
|
|
|
- name: Package - AppImage (Ubuntu)
|
|
|
|
if: matrix.build-appimage
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
sh ./../.CI/CreateAppImage.sh
|
|
|
|
|
|
|
|
- name: Upload artifact - AppImage (Ubuntu)
|
|
|
|
if: matrix.build-appimage
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: Chatterino-x86_64-Qt-${{ matrix.qt-version }}.AppImage
|
|
|
|
path: build/Chatterino-x86_64.AppImage
|
|
|
|
|
|
|
|
- name: Package - .deb (Ubuntu)
|
|
|
|
if: matrix.build-deb
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
sh ./../.CI/CreateUbuntuDeb.sh
|
|
|
|
|
|
|
|
- name: Upload artifact - .deb (Ubuntu)
|
|
|
|
if: matrix.build-deb
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: Chatterino-${{ matrix.os }}-Qt-${{ matrix.qt-version }}.deb
|
|
|
|
path: build/Chatterino-${{ matrix.os }}-x86_64.deb
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: "Build ${{ matrix.os }}, Qt ${{ matrix.qt-version }} (LTO:${{ matrix.force-lto }}, crashpad:${{ matrix.skip-crashpad && 'off' || 'on' }})"
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-10-01 11:19:26 +02:00
|
|
|
# macOS
|
|
|
|
- os: macos-latest
|
|
|
|
qt-version: 5.15.2
|
|
|
|
force-lto: false
|
|
|
|
plugins: false
|
|
|
|
skip-artifact: false
|
|
|
|
skip-crashpad: false
|
|
|
|
# Windows
|
|
|
|
- os: windows-latest
|
|
|
|
qt-version: 6.5.0
|
|
|
|
force-lto: false
|
|
|
|
plugins: false
|
|
|
|
skip-artifact: false
|
|
|
|
skip-crashpad: false
|
|
|
|
# Windows 7/8
|
2023-02-12 20:36:58 +01:00
|
|
|
- os: windows-latest
|
|
|
|
qt-version: 5.15.2
|
2023-05-08 14:08:43 +02:00
|
|
|
force-lto: false
|
|
|
|
plugins: false
|
2023-10-01 11:19:26 +02:00
|
|
|
skip-artifact: false
|
2023-05-08 14:08:43 +02:00
|
|
|
skip-crashpad: true
|
2023-04-02 15:31:53 +02:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
fail-fast: false
|
2024-02-10 12:47:15 +01:00
|
|
|
env:
|
|
|
|
C2_ENABLE_LTO: ${{ matrix.force-lto }}
|
|
|
|
C2_PLUGINS: ${{ matrix.plugins }}
|
|
|
|
C2_ENABLE_CRASHPAD: ${{ matrix.skip-crashpad == false }}
|
|
|
|
C2_BUILD_WITH_QT6: ${{ startsWith(matrix.qt-version, '6.') }}
|
2019-12-28 14:54:03 +01:00
|
|
|
|
|
|
|
steps:
|
2023-09-09 15:31:12 +02:00
|
|
|
- uses: actions/checkout@v4
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-02-12 20:36:58 +01:00
|
|
|
submodules: recursive
|
2023-01-15 17:27:41 +01:00
|
|
|
fetch-depth: 0 # allows for tags access
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2023-02-19 20:19:18 +01:00
|
|
|
- name: Install Qt5
|
|
|
|
if: startsWith(matrix.qt-version, '5.')
|
2023-08-07 11:00:33 +02:00
|
|
|
uses: jurplel/install-qt-action@v3.3.0
|
2023-02-19 20:19:18 +01:00
|
|
|
with:
|
|
|
|
cache: true
|
|
|
|
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2
|
|
|
|
version: ${{ matrix.qt-version }}
|
|
|
|
|
2023-10-01 11:19:26 +02:00
|
|
|
- name: Install Qt 6.5.3 imageformats
|
|
|
|
if: startsWith(matrix.qt-version, '6.')
|
|
|
|
uses: jurplel/install-qt-action@v3.3.0
|
|
|
|
with:
|
|
|
|
cache: false
|
|
|
|
modules: qtimageformats
|
|
|
|
set-env: false
|
|
|
|
version: 6.5.3
|
|
|
|
extra: --noarchives
|
|
|
|
|
|
|
|
- name: Find Qt 6.5.3 Path
|
|
|
|
if: startsWith(matrix.qt-version, '6.') && startsWith(matrix.os, 'windows')
|
|
|
|
shell: pwsh
|
|
|
|
id: find-good-imageformats
|
|
|
|
run: |
|
|
|
|
cd "$Env:RUNNER_WORKSPACE/Qt/6.5.3"
|
|
|
|
cd (Get-ChildItem)[0].Name
|
|
|
|
cd plugins/imageformats
|
|
|
|
echo "PLUGIN_PATH=$(pwd)" | Out-File -Path "$Env:GITHUB_OUTPUT" -Encoding ASCII
|
|
|
|
|
2023-02-19 20:19:18 +01:00
|
|
|
- name: Install Qt6
|
|
|
|
if: startsWith(matrix.qt-version, '6.')
|
2023-08-07 11:00:33 +02:00
|
|
|
uses: jurplel/install-qt-action@v3.3.0
|
2021-01-10 13:23:34 +01:00
|
|
|
with:
|
2022-11-03 20:03:16 +01:00
|
|
|
cache: true
|
2023-02-16 14:56:20 +01:00
|
|
|
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2
|
2023-04-17 15:06:15 +02:00
|
|
|
modules: qt5compat qtimageformats
|
2021-01-10 13:23:34 +01:00
|
|
|
version: ${{ matrix.qt-version }}
|
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
# WINDOWS
|
2023-04-04 21:29:49 +02:00
|
|
|
- name: Enable Developer Command Prompt (Windows)
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
2024-01-02 15:01:47 +01:00
|
|
|
uses: ilammy/msvc-dev-cmd@v1.13.0
|
2023-04-04 21:29:49 +02:00
|
|
|
|
2023-04-02 12:48:22 +02:00
|
|
|
- name: Setup conan variables (Windows)
|
2020-01-23 09:21:01 +01:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
2023-04-02 12:48:22 +02:00
|
|
|
run: |
|
|
|
|
"C2_USE_OPENSSL3=$(if ($Env:C2_BUILD_WITH_QT6 -eq "on") { "True" } else { "False" })" >> "$Env:GITHUB_ENV"
|
|
|
|
"C2_CONAN_CACHE_SUFFIX=$(if ($Env:C2_BUILD_WITH_QT6 -eq "on") { "-QT6" } else { "`" })" >> "$Env:GITHUB_ENV"
|
|
|
|
shell: powershell
|
2022-03-04 11:26:45 +01:00
|
|
|
|
2023-06-11 12:31:04 +02:00
|
|
|
- name: Setup sccache (Windows)
|
|
|
|
# sccache v0.5.3
|
2024-03-04 00:56:01 +01:00
|
|
|
uses: hendrikmuhs/ccache-action@v1.2.12
|
2023-06-11 12:31:04 +02:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
with:
|
|
|
|
variant: sccache
|
2023-07-19 22:29:17 +02:00
|
|
|
# only save on on the default (master) branch
|
|
|
|
save: ${{ github.event_name == 'push' }}
|
2023-06-11 12:31:04 +02:00
|
|
|
key: sccache-build-${{ matrix.os }}-${{ matrix.qt-version }}-${{ matrix.skip-crashpad }}
|
|
|
|
restore-keys: |
|
|
|
|
sccache-build-${{ matrix.os }}-${{ matrix.qt-version }}
|
|
|
|
|
2023-04-04 21:29:49 +02:00
|
|
|
- name: Cache conan packages (Windows)
|
2022-03-04 11:26:45 +01:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
2024-01-18 01:54:17 +01:00
|
|
|
uses: actions/cache@v4
|
2022-03-04 11:26:45 +01:00
|
|
|
with:
|
2023-04-02 12:48:22 +02:00
|
|
|
key: ${{ runner.os }}-conan-user-${{ hashFiles('**/conanfile.py') }}${{ env.C2_CONAN_CACHE_SUFFIX }}
|
|
|
|
path: ~/.conan2/
|
2020-01-23 09:21:01 +01:00
|
|
|
|
2023-04-04 21:29:49 +02:00
|
|
|
- name: Install Conan (Windows)
|
2019-12-28 14:54:03 +01:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
run: |
|
2023-04-04 21:29:49 +02:00
|
|
|
python3 -c "import site; import sys; print(f'{site.USER_BASE}\\Python{sys.version_info.major}{sys.version_info.minor}\\Scripts')" >> "$GITHUB_PATH"
|
|
|
|
pip3 install --user "conan==${{ env.CONAN_VERSION }}"
|
|
|
|
shell: powershell
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2023-01-29 14:10:39 +01:00
|
|
|
- name: Setup Conan (Windows)
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
run: |
|
2023-04-02 12:48:22 +02:00
|
|
|
conan --version
|
|
|
|
conan profile detect -f
|
|
|
|
shell: powershell
|
2023-01-29 14:10:39 +01:00
|
|
|
|
2023-04-04 21:29:49 +02:00
|
|
|
- name: Install dependencies (Windows)
|
2022-07-23 14:04:29 +02:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
2021-03-28 16:58:51 +02:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2023-04-02 12:48:22 +02:00
|
|
|
conan install .. `
|
|
|
|
-s build_type=RelWithDebInfo `
|
|
|
|
-c tools.cmake.cmaketoolchain:generator="NMake Makefiles" `
|
|
|
|
-b missing `
|
|
|
|
--output-folder=. `
|
|
|
|
-o with_openssl3="$Env:C2_USE_OPENSSL3"
|
2023-04-04 21:29:49 +02:00
|
|
|
shell: powershell
|
|
|
|
|
|
|
|
- name: Build (Windows)
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
2023-05-08 14:08:43 +02:00
|
|
|
shell: pwsh
|
2023-04-04 21:29:49 +02:00
|
|
|
run: |
|
|
|
|
cd build
|
2023-01-15 17:27:41 +01:00
|
|
|
cmake `
|
|
|
|
-G"NMake Makefiles" `
|
2023-02-12 20:36:58 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
2023-01-29 14:10:39 +01:00
|
|
|
-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" `
|
2023-10-01 11:19:26 +02:00
|
|
|
-DUSE_PRECOMPILED_HEADERS=ON `
|
2023-02-12 20:36:58 +01:00
|
|
|
-DBUILD_WITH_CRASHPAD="$Env:C2_ENABLE_CRASHPAD" `
|
2023-01-15 17:27:41 +01:00
|
|
|
-DCHATTERINO_LTO="$Env:C2_ENABLE_LTO" `
|
2023-04-02 15:31:53 +02:00
|
|
|
-DCHATTERINO_PLUGINS="$Env:C2_PLUGINS" `
|
2023-02-19 20:19:18 +01:00
|
|
|
-DBUILD_WITH_QT6="$Env:C2_BUILD_WITH_QT6" `
|
2023-01-15 17:27:41 +01:00
|
|
|
..
|
|
|
|
set cl=/MP
|
|
|
|
nmake /S /NOLOGO
|
2023-02-12 20:36:58 +01:00
|
|
|
|
|
|
|
- name: Build crashpad (Windows)
|
2023-05-08 14:08:43 +02:00
|
|
|
if: startsWith(matrix.os, 'windows') && !matrix.skip-crashpad
|
|
|
|
shell: pwsh
|
2023-02-12 20:36:58 +01:00
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
set cl=/MP
|
2023-12-24 15:38:58 +01:00
|
|
|
nmake /S /NOLOGO chatterino-crash-handler
|
2023-02-12 20:36:58 +01:00
|
|
|
mkdir Chatterino2/crashpad
|
2023-12-24 15:38:58 +01:00
|
|
|
cp bin/crashpad/crashpad-handler.exe Chatterino2/crashpad/crashpad-handler.exe
|
2023-04-15 13:25:51 +02:00
|
|
|
7z a bin/chatterino-Qt-${{ matrix.qt-version }}.pdb.7z bin/chatterino.pdb
|
2023-02-12 20:36:58 +01:00
|
|
|
|
2023-10-01 11:19:26 +02:00
|
|
|
- name: Prepare build dir (windows)
|
2023-02-12 20:36:58 +01:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
run: |
|
|
|
|
cd build
|
2023-01-15 17:27:41 +01:00
|
|
|
windeployqt bin/chatterino.exe --release --no-compiler-runtime --no-translations --no-opengl-sw --dir Chatterino2/
|
|
|
|
cp bin/chatterino.exe Chatterino2/
|
|
|
|
echo nightly > Chatterino2/modes
|
2023-10-01 11:19:26 +02:00
|
|
|
|
|
|
|
- name: Fix Qt6 (windows)
|
|
|
|
if: startsWith(matrix.qt-version, '6.') && startsWith(matrix.os, 'windows')
|
|
|
|
working-directory: build
|
|
|
|
run: |
|
|
|
|
cp ${{ steps.find-good-imageformats.outputs.PLUGIN_PATH }}/qwebp.dll Chatterino2/imageformats/qwebp.dll
|
|
|
|
|
|
|
|
- name: Package (windows)
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
working-directory: build
|
|
|
|
run: |
|
2023-04-15 13:25:51 +02:00
|
|
|
7z a chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip Chatterino2/
|
2021-03-14 17:25:32 +01:00
|
|
|
|
2023-02-12 20:36:58 +01:00
|
|
|
- name: Upload artifact (Windows - binary)
|
2023-05-08 14:08:43 +02:00
|
|
|
if: startsWith(matrix.os, 'windows') && !matrix.skip-artifact
|
2023-12-16 11:43:00 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-04-15 13:25:51 +02:00
|
|
|
name: chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip
|
|
|
|
path: build/chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2023-02-12 20:36:58 +01:00
|
|
|
- name: Upload artifact (Windows - symbols)
|
2023-05-08 14:08:43 +02:00
|
|
|
if: startsWith(matrix.os, 'windows') && !matrix.skip-artifact
|
2023-12-16 11:43:00 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-02-12 20:36:58 +01:00
|
|
|
with:
|
2023-04-15 13:25:51 +02:00
|
|
|
name: chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}-symbols.pdb.7z
|
|
|
|
path: build/bin/chatterino-Qt-${{ matrix.qt-version }}.pdb.7z
|
2023-02-12 20:36:58 +01:00
|
|
|
|
2023-04-02 12:48:22 +02:00
|
|
|
- name: Clean Conan cache
|
2022-03-04 11:26:45 +01:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
2023-04-02 12:48:22 +02:00
|
|
|
run: conan cache clean --source --build --download "*"
|
2022-03-04 11:26:45 +01:00
|
|
|
shell: bash
|
2022-12-02 20:30:28 +01:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
# MACOS
|
|
|
|
- name: Install dependencies (MacOS)
|
|
|
|
if: startsWith(matrix.os, 'macos')
|
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
brew install boost openssl rapidjson p7zip create-dmg cmake tree
|
2019-12-28 14:54:03 +01:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Build (MacOS)
|
2022-07-23 14:04:29 +02:00
|
|
|
if: startsWith(matrix.os, 'macos')
|
2021-03-28 16:58:51 +02:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
|
|
|
|
-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl \
|
2023-05-08 14:08:43 +02:00
|
|
|
-DUSE_PRECOMPILED_HEADERS=OFF \
|
2023-01-15 17:27:41 +01:00
|
|
|
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \
|
2023-04-02 15:31:53 +02:00
|
|
|
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \
|
2023-02-19 20:19:18 +01:00
|
|
|
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \
|
2023-01-15 17:27:41 +01:00
|
|
|
..
|
|
|
|
make -j"$(sysctl -n hw.logicalcpu)"
|
2021-03-28 16:58:51 +02:00
|
|
|
shell: bash
|
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
- name: Package (MacOS)
|
|
|
|
if: startsWith(matrix.os, 'macos')
|
2023-04-29 16:07:20 +02:00
|
|
|
env:
|
|
|
|
OUTPUT_DMG_PATH: chatterino-macos-Qt-${{ matrix.qt-version}}.dmg
|
2019-12-28 14:54:03 +01:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
ls -la
|
|
|
|
pwd
|
|
|
|
ls -la build || true
|
|
|
|
cd build
|
2023-04-29 16:07:20 +02:00
|
|
|
./../.CI/MacDeploy.sh
|
|
|
|
./../.CI/CreateDMG.sh
|
2019-12-28 14:54:03 +01:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Upload artifact (MacOS)
|
|
|
|
if: startsWith(matrix.os, 'macos')
|
2023-12-16 11:43:00 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-04-16 21:05:51 +02:00
|
|
|
name: chatterino-macos-Qt-${{ matrix.qt-version }}.dmg
|
|
|
|
path: build/chatterino-macos-Qt-${{ matrix.qt-version }}.dmg
|
2024-02-10 12:47:15 +01:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
create-release:
|
2024-02-10 12:47:15 +01:00
|
|
|
needs: [build-ubuntu-docker, build]
|
2019-12-28 14:54:03 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: (github.event_name == 'push' && github.ref == 'refs/heads/master')
|
|
|
|
|
|
|
|
steps:
|
2023-09-09 15:31:12 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-02-13 20:11:48 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # allows for tags access
|
2023-04-15 14:23:33 +02:00
|
|
|
|
2024-02-10 12:47:15 +01:00
|
|
|
# Windows
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2023-04-15 14:23:33 +02:00
|
|
|
name: Windows Qt6.5.0
|
2023-04-15 13:25:51 +02:00
|
|
|
with:
|
2023-04-15 14:23:33 +02:00
|
|
|
name: chatterino-windows-x86-64-Qt-6.5.0.zip
|
2023-04-15 13:25:51 +02:00
|
|
|
path: release-artifacts/
|
|
|
|
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2023-04-15 14:23:33 +02:00
|
|
|
name: Windows Qt6.5.0 symbols
|
2023-04-15 13:25:51 +02:00
|
|
|
with:
|
|
|
|
name: chatterino-windows-x86-64-Qt-6.5.0-symbols.pdb.7z
|
2023-02-13 10:34:40 +01:00
|
|
|
path: release-artifacts/
|
|
|
|
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2023-04-17 09:59:25 +02:00
|
|
|
name: Windows Qt5.15.2
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-04-17 09:59:25 +02:00
|
|
|
name: chatterino-windows-x86-64-Qt-5.15.2.zip
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2024-02-10 12:47:15 +01:00
|
|
|
# Linux
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-02-10 12:47:15 +01:00
|
|
|
name: Linux AppImage
|
2023-02-11 23:50:01 +01:00
|
|
|
with:
|
2024-02-10 12:47:15 +01:00
|
|
|
name: Chatterino-x86_64-Qt-6.6.1.AppImage
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2021-07-17 13:28:45 +02:00
|
|
|
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-02-10 12:47:15 +01:00
|
|
|
name: Ubuntu 20.04 deb
|
2021-07-17 13:28:45 +02:00
|
|
|
with:
|
2024-02-10 12:47:15 +01:00
|
|
|
name: Chatterino-ubuntu-20.04-Qt-6.6.1.deb
|
2023-04-15 13:25:51 +02:00
|
|
|
path: release-artifacts/
|
|
|
|
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-02-10 12:47:15 +01:00
|
|
|
name: Ubuntu 22.04 deb
|
2023-04-15 13:25:51 +02:00
|
|
|
with:
|
2024-02-10 12:47:15 +01:00
|
|
|
name: Chatterino-ubuntu-22.04-Qt-6.6.1.deb
|
2023-04-15 13:25:51 +02:00
|
|
|
path: release-artifacts/
|
|
|
|
|
2024-02-10 12:47:15 +01:00
|
|
|
- name: Copy flatpakref
|
|
|
|
run: |
|
|
|
|
cp .CI/chatterino-nightly.flatpakref release-artifacts/
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
# macOS
|
2023-12-16 12:01:15 +01:00
|
|
|
- uses: actions/download-artifact@v4
|
2023-04-17 09:59:25 +02:00
|
|
|
name: macOS x86_64 Qt5.15.2 dmg
|
2023-04-15 13:25:51 +02:00
|
|
|
with:
|
2023-04-17 09:59:25 +02:00
|
|
|
name: chatterino-macos-Qt-5.15.2.dmg
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2023-05-08 14:08:43 +02:00
|
|
|
- name: Rename artifacts
|
|
|
|
run: |
|
|
|
|
ls -l
|
|
|
|
# Rename the macos build to indicate that it's for macOS 10.15 users
|
|
|
|
mv chatterino-macos-Qt-5.15.2.dmg Chatterino-macOS-10.15.dmg
|
|
|
|
|
2023-10-01 11:19:26 +02:00
|
|
|
# Mark all Windows Qt5 builds as old
|
|
|
|
mv chatterino-windows-x86-64-Qt-5.15.2.zip chatterino-windows-old-x86-64-Qt-5.15.2.zip
|
2023-05-08 14:08:43 +02:00
|
|
|
working-directory: release-artifacts
|
|
|
|
shell: bash
|
|
|
|
|
2022-11-08 23:07:44 +01:00
|
|
|
- name: Create release
|
2024-02-06 02:28:39 +01:00
|
|
|
uses: ncipollo/release-action@v1.14.0
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-04-29 16:07:20 +02:00
|
|
|
replacesArtifacts: true
|
2022-11-08 23:07:44 +01:00
|
|
|
allowUpdates: true
|
|
|
|
artifactErrorsFailBuild: true
|
|
|
|
artifacts: "release-artifacts/*"
|
2022-11-09 15:47:42 +01:00
|
|
|
body: ${{ github.event.head_commit.message }}
|
2022-11-08 23:07:44 +01:00
|
|
|
prerelease: true
|
|
|
|
name: Nightly Release
|
|
|
|
tag: nightly-build
|
2023-02-13 20:11:48 +01:00
|
|
|
|
|
|
|
- name: Update nightly-build tag
|
|
|
|
run: |
|
|
|
|
git tag -f nightly-build
|
|
|
|
git push -f origin nightly-build
|
|
|
|
shell: bash
|