2019-12-28 14:54:03 +01:00
|
|
|
---
|
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-13 13:14:18 +01:00
|
|
|
branches:
|
|
|
|
- master
|
2019-12-28 14:54:03 +01:00
|
|
|
pull_request:
|
2022-06-14 14:48:21 +02:00
|
|
|
workflow_dispatch:
|
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:
|
|
|
|
C2_ENABLE_LTO: ${{ github.ref == 'refs/heads/master' }}
|
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
2023-02-13 00:06:01 +01:00
|
|
|
name: "Build ${{ matrix.os }}, Qt ${{ matrix.qt-version }} (PCH:${{ matrix.pch }}, LTO:${{ matrix.force-lto }})"
|
2019-12-28 14:54:03 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-02-11 23:50:01 +01:00
|
|
|
os: [windows-latest, macos-latest]
|
2022-06-14 14:48:21 +02:00
|
|
|
qt-version: [5.15.2, 5.12.12]
|
2021-10-30 14:24:43 +02:00
|
|
|
pch: [true]
|
2022-12-24 18:42:59 +01:00
|
|
|
force-lto: [false]
|
2023-02-02 13:43:29 +01:00
|
|
|
plugins: [false]
|
2023-02-11 23:50:01 +01:00
|
|
|
skip_artifact: ["no"]
|
2023-02-12 20:36:58 +01:00
|
|
|
crashpad: [true]
|
2021-03-28 16:58:51 +02:00
|
|
|
include:
|
2023-02-11 23:50:01 +01:00
|
|
|
# Ubuntu 20.04, Qt 5.12
|
2022-12-07 12:53:50 +01:00
|
|
|
- os: ubuntu-20.04
|
2023-02-11 23:50:01 +01:00
|
|
|
qt-version: 5.12.12
|
|
|
|
pch: true
|
|
|
|
force-lto: false
|
|
|
|
# Ubuntu 22.04, Qt 5.15
|
|
|
|
- os: ubuntu-22.04
|
|
|
|
qt-version: 5.15.2
|
|
|
|
pch: true
|
|
|
|
force-lto: false
|
|
|
|
# Test for disabling Precompiled Headers & enabling link-time optimization
|
|
|
|
- os: ubuntu-22.04
|
2021-10-30 14:24:43 +02:00
|
|
|
qt-version: 5.15.2
|
|
|
|
pch: false
|
2022-12-24 18:42:59 +01:00
|
|
|
force-lto: true
|
2023-02-11 23:50:01 +01:00
|
|
|
skip_artifact: "yes"
|
2023-02-12 20:36:58 +01:00
|
|
|
# Test for disabling crashpad on Windows
|
|
|
|
- os: windows-latest
|
|
|
|
qt-version: 5.15.2
|
|
|
|
pch: false
|
|
|
|
force-lto: true
|
|
|
|
skip_artifact: "yes"
|
|
|
|
crashpad: false
|
2023-02-02 13:43:29 +01:00
|
|
|
- os: ubuntu-20.04
|
|
|
|
qt-version: 5.15.2
|
|
|
|
pch: true
|
|
|
|
force-lto: false
|
|
|
|
plugins: true
|
|
|
|
- os: windows-latest
|
|
|
|
qt-version: 5.15.2
|
|
|
|
pch: true
|
|
|
|
force-lto: false
|
|
|
|
plugins: true
|
|
|
|
- os: macos-latest
|
|
|
|
qt-version: 5.15.2
|
|
|
|
pch: true
|
|
|
|
force-lto: false
|
|
|
|
plugins: true
|
2019-12-28 14:54:03 +01:00
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
steps:
|
2022-12-24 18:42:59 +01:00
|
|
|
- name: Force LTO
|
|
|
|
if: matrix.force-lto == true
|
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
echo "C2_ENABLE_LTO=ON" >> "$GITHUB_ENV"
|
2022-12-24 18:42:59 +01:00
|
|
|
shell: bash
|
|
|
|
|
2023-02-02 13:43:29 +01:00
|
|
|
- name: Enable plugin support
|
|
|
|
if: matrix.plugins == true
|
|
|
|
run: |
|
|
|
|
echo "C2_PLUGINS=ON" >> "$GITHUB_ENV"
|
2023-02-12 23:40:56 +01:00
|
|
|
echo "artifact_descr=plugins" >> "$GITHUB_ENV"
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Disable plugin support
|
|
|
|
if: matrix.plugins == false
|
2023-02-13 00:10:13 +01:00
|
|
|
run: |
|
2023-02-12 23:40:56 +01:00
|
|
|
echo "artifact_descr=no-plugins" >> "$GITHUB_ENV"
|
|
|
|
shell: bash
|
|
|
|
|
2023-02-12 20:36:58 +01:00
|
|
|
- name: Set Crashpad
|
|
|
|
if: matrix.crashpad == true
|
|
|
|
run: |
|
|
|
|
echo "C2_ENABLE_CRASHPAD=ON" >> "$GITHUB_ENV"
|
2023-02-02 13:43:29 +01:00
|
|
|
shell: bash
|
|
|
|
|
2022-03-04 11:26:45 +01:00
|
|
|
- name: Set environment variables for windows-latest
|
|
|
|
if: matrix.os == 'windows-latest'
|
2021-03-28 16:58:51 +02:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
echo "vs_version=2022" >> "$GITHUB_ENV"
|
2021-03-28 16:58:51 +02:00
|
|
|
shell: bash
|
|
|
|
|
2022-03-04 14:49:51 +01:00
|
|
|
- uses: actions/checkout@v3
|
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
|
|
|
|
2021-03-06 14:05:03 +01:00
|
|
|
- name: Install Qt
|
2022-11-03 20:03:16 +01:00
|
|
|
uses: jurplel/install-qt-action@v3.0.0
|
2021-01-10 13:23:34 +01:00
|
|
|
with:
|
2022-11-03 20:03:16 +01:00
|
|
|
cache: true
|
|
|
|
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}
|
2021-01-10 13:23:34 +01:00
|
|
|
version: ${{ matrix.qt-version }}
|
2022-03-04 11:51:17 +01:00
|
|
|
dir: "${{ github.workspace }}/qt/"
|
2021-01-10 13:23:34 +01:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
# WINDOWS
|
2022-03-04 11:26:45 +01:00
|
|
|
- name: Cache conan packages part 1
|
2020-01-23 09:21:01 +01:00
|
|
|
if: startsWith(matrix.os, 'windows')
|
2022-03-22 12:50:52 +01:00
|
|
|
uses: actions/cache@v3
|
2020-01-23 09:21:01 +01:00
|
|
|
with:
|
2023-02-12 20:36:58 +01:00
|
|
|
key: ${{ runner.os }}-${{ matrix.crashpad }}-conan-user-${{ hashFiles('**/conanfile.txt') }}
|
2023-01-15 17:27:41 +01:00
|
|
|
path: ~/.conan/
|
2022-03-04 11:26:45 +01:00
|
|
|
|
|
|
|
- name: Cache conan packages part 2
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
2022-03-22 12:50:52 +01:00
|
|
|
uses: actions/cache@v3
|
2022-03-04 11:26:45 +01:00
|
|
|
with:
|
2023-02-12 20:36:58 +01:00
|
|
|
key: ${{ runner.os }}-${{ matrix.crashpad }}-conan-root-${{ hashFiles('**/conanfile.txt') }}
|
2020-01-23 09:21:01 +01:00
|
|
|
path: C:/.conan/
|
|
|
|
|
2021-04-11 14:46:25 +02:00
|
|
|
- name: Add Conan to path
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
run: echo "C:\Program Files\Conan\conan\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
2022-12-02 20:30:28 +01:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
- name: Install dependencies (Windows)
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
choco install conan -y
|
2022-12-02 20:30:28 +01:00
|
|
|
|
2021-04-11 14:46:25 +02:00
|
|
|
- name: Enable Developer Command Prompt
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
2023-02-06 03:29:20 +01:00
|
|
|
uses: ilammy/msvc-dev-cmd@v1.12.1
|
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: |
|
|
|
|
conan profile new --detect --force default
|
|
|
|
conan profile update conf.tools.cmake.cmaketoolchain:generator="NMake Makefiles" default
|
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
- name: Build (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-02-12 20:36:58 +01:00
|
|
|
conan install .. -s build_type=RelWithDebInfo -b missing -pr:b=default
|
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-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-02-02 13:43:29 +01:00
|
|
|
-DCHATTERINO_PLUGINS="$Env:C2_PLUGINS" `
|
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)
|
|
|
|
if: startsWith(matrix.os, 'windows') && matrix.crashpad
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
set cl=/MP
|
|
|
|
nmake /S /NOLOGO crashpad_handler
|
|
|
|
mkdir Chatterino2/crashpad
|
|
|
|
cp bin/crashpad/crashpad_handler.exe Chatterino2/crashpad/crashpad_handler.exe
|
|
|
|
7z a bin/chatterino.pdb.7z bin/chatterino.pdb
|
|
|
|
|
|
|
|
- name: Package (windows)
|
|
|
|
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
|
|
|
|
7z a chatterino-windows-x86-64.zip Chatterino2/
|
2021-03-14 17:25:32 +01:00
|
|
|
|
2023-02-12 20:36:58 +01:00
|
|
|
- name: Upload artifact (Windows - binary)
|
|
|
|
if: startsWith(matrix.os, 'windows') && matrix.skip_artifact != 'yes'
|
2022-03-04 11:06:15 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-02-13 00:10:13 +01:00
|
|
|
name: chatterino-windows-x86-64-${{ matrix.qt-version }}-${{ env.artifact_descr }}.zip
|
2019-12-28 14:54:03 +01:00
|
|
|
path: build/chatterino-windows-x86-64.zip
|
|
|
|
|
2023-02-12 20:36:58 +01:00
|
|
|
- name: Upload artifact (Windows - symbols)
|
|
|
|
if: startsWith(matrix.os, 'windows') && matrix.skip_artifact != 'yes'
|
2023-02-02 13:43:29 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-02-12 20:36:58 +01:00
|
|
|
name: chatterino-windows-x86-64-${{ matrix.qt-version }}-symbols.pdb.7z
|
|
|
|
path: build/bin/chatterino.pdb.7z
|
2023-02-02 13:43:29 +01:00
|
|
|
|
2022-03-04 11:26:45 +01:00
|
|
|
- name: Clean Conan pkgs
|
|
|
|
if: startsWith(matrix.os, 'windows')
|
|
|
|
run: conan remove "*" -fsb
|
|
|
|
shell: bash
|
2022-12-02 20:30:28 +01:00
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
# LINUX
|
|
|
|
- name: Install dependencies (Ubuntu)
|
|
|
|
if: startsWith(matrix.os, 'ubuntu')
|
2020-12-05 14:31:28 +01:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
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
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2023-02-11 23:50:01 +01:00
|
|
|
- name: Apply Qt patches (Ubuntu)
|
|
|
|
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.qt-version, '5.')
|
|
|
|
run: |
|
|
|
|
patch "$Qt5_DIR/include/QtConcurrent/qtconcurrentthreadengine.h" .patches/qt5-on-newer-gcc.patch
|
|
|
|
shell: bash
|
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
- name: Build (Ubuntu)
|
2022-07-23 14:04:29 +02:00
|
|
|
if: startsWith(matrix.os, 'ubuntu')
|
2021-03-28 16:58:51 +02:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2023-02-11 23:50:01 +01:00
|
|
|
CXXFLAGS=-fno-sized-deallocation cmake \
|
2023-01-15 17:27:41 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX=appdir/usr/ \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DPAJLADA_SETTINGS_USE_BOOST_FILESYSTEM=On \
|
|
|
|
-DUSE_PRECOMPILED_HEADERS=${{ matrix.pch }} \
|
|
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \
|
|
|
|
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \
|
2023-02-02 13:43:29 +01:00
|
|
|
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \
|
2023-01-15 17:27:41 +01:00
|
|
|
..
|
|
|
|
make -j"$(nproc)"
|
2021-03-28 16:58:51 +02:00
|
|
|
shell: bash
|
|
|
|
|
2022-07-31 16:16:22 +02:00
|
|
|
- name: clang-tidy review
|
2022-07-31 17:32:43 +02:00
|
|
|
if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request')
|
2022-10-29 11:47:27 +02:00
|
|
|
uses: ZedThree/clang-tidy-review@v0.10.1
|
2022-07-31 16:16:22 +02:00
|
|
|
id: review
|
|
|
|
with:
|
|
|
|
build_dir: build
|
2023-01-15 17:27:41 +01:00
|
|
|
config_file: ".clang-tidy"
|
2022-08-28 13:32:07 +02:00
|
|
|
split_workflow: true
|
2023-01-26 19:47:32 +01:00
|
|
|
exclude: "tests/*,lib/*"
|
2022-08-28 13:32:07 +02:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request')
|
|
|
|
with:
|
|
|
|
name: clang-tidy-review
|
|
|
|
path: |
|
|
|
|
clang-tidy-review-output.json
|
|
|
|
clang-tidy-review-metadata.json
|
2022-07-31 16:16:22 +02:00
|
|
|
|
2021-07-17 13:28:45 +02:00
|
|
|
- name: Package - AppImage (Ubuntu)
|
2023-02-11 23:50:01 +01:00
|
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes'
|
2019-12-28 14:54:03 +01:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
cd build
|
|
|
|
sh ./../.CI/CreateAppImage.sh
|
2019-12-28 14:54:03 +01:00
|
|
|
shell: bash
|
|
|
|
|
2021-07-17 13:28:45 +02:00
|
|
|
- name: Package - .deb (Ubuntu)
|
2023-02-11 23:50:01 +01:00
|
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes'
|
2021-07-17 13:28:45 +02:00
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
cd build
|
|
|
|
sh ./../.CI/CreateUbuntuDeb.sh
|
2021-07-17 13:28:45 +02:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Upload artifact - AppImage (Ubuntu)
|
2023-02-11 23:50:01 +01:00
|
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes'
|
2022-03-04 11:06:15 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-02-13 00:10:13 +01:00
|
|
|
name: Chatterino-x86_64-${{ matrix.qt-version }}-${{ env.artifact_descr }}.AppImage
|
2019-12-28 14:54:03 +01:00
|
|
|
path: build/Chatterino-x86_64.AppImage
|
|
|
|
|
2023-02-02 13:43:29 +01:00
|
|
|
- name: Upload artifact - AppImage (Ubuntu, plugins)
|
|
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.plugins == true
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Chatterino-x86_64-${{ matrix.qt-version }}-plugins.AppImage
|
|
|
|
path: build/Chatterino-x86_64.AppImage
|
|
|
|
|
2021-07-17 13:28:45 +02:00
|
|
|
- name: Upload artifact - .deb (Ubuntu)
|
2023-02-11 23:50:01 +01:00
|
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.skip_artifact != 'yes'
|
2023-02-02 13:43:29 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-02-13 00:10:13 +01:00
|
|
|
name: Chatterino-${{ matrix.os }}-Qt-${{ matrix.qt-version }}-${{ env.artifact_descr }}.deb
|
2023-02-13 13:04:49 +01:00
|
|
|
path: build/Chatterino-${{ matrix.is }}-x86_64.deb
|
2023-02-02 13:43:29 +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 \
|
|
|
|
-DUSE_PRECOMPILED_HEADERS=${{ matrix.pch }} \
|
|
|
|
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \
|
2023-02-02 13:43:29 +01:00
|
|
|
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \
|
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')
|
|
|
|
run: |
|
2023-01-15 17:27:41 +01:00
|
|
|
ls -la
|
|
|
|
pwd
|
|
|
|
ls -la build || true
|
|
|
|
cd build
|
|
|
|
sh ./../.CI/CreateDMG.sh
|
2019-12-28 14:54:03 +01:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Upload artifact (MacOS)
|
|
|
|
if: startsWith(matrix.os, 'macos')
|
2023-02-02 13:43:29 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-02-13 00:10:13 +01:00
|
|
|
name: chatterino-osx-${{ matrix.qt-version }}-${{ env.artifact_descr }}.dmg
|
2023-02-02 13:43:29 +01:00
|
|
|
path: build/chatterino-osx.dmg
|
2019-12-28 14:54:03 +01:00
|
|
|
create-release:
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: (github.event_name == 'push' && github.ref == 'refs/heads/master')
|
|
|
|
|
|
|
|
steps:
|
2023-02-13 20:11:48 +01:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # allows for tags access
|
2022-03-04 15:18:06 +01:00
|
|
|
- uses: actions/download-artifact@v3
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2022-07-23 14:04:29 +02:00
|
|
|
name: chatterino-windows-x86-64-5.15.2.zip
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2023-02-13 10:34:40 +01:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
2023-02-13 11:33:25 +01:00
|
|
|
name: chatterino-windows-x86-64-5.15.2-symbols.pdb.7z
|
2023-02-13 10:34:40 +01:00
|
|
|
path: release-artifacts/
|
|
|
|
|
2022-03-04 15:18:06 +01:00
|
|
|
- uses: actions/download-artifact@v3
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2022-07-23 14:04:29 +02:00
|
|
|
name: Chatterino-x86_64-5.15.2.AppImage
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2022-03-04 15:18:06 +01:00
|
|
|
- uses: actions/download-artifact@v3
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2023-02-12 00:20:54 +01:00
|
|
|
name: Chatterino-ubuntu-20.04-Qt-5.12.12.deb
|
2023-02-11 23:50:01 +01:00
|
|
|
path: release-artifacts/
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
2023-02-12 00:20:54 +01:00
|
|
|
name: Chatterino-ubuntu-22.04-Qt-5.15.2.deb
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2021-07-17 13:28:45 +02:00
|
|
|
|
2022-03-04 15:18:06 +01:00
|
|
|
- uses: actions/download-artifact@v3
|
2021-07-17 13:28:45 +02:00
|
|
|
with:
|
2022-07-23 14:04:29 +02:00
|
|
|
name: chatterino-osx-5.15.2.dmg
|
2022-11-08 23:07:44 +01:00
|
|
|
path: release-artifacts/
|
2019-12-28 14:54:03 +01:00
|
|
|
|
2022-11-08 23:07:44 +01:00
|
|
|
- name: Create release
|
2022-12-17 12:26:47 +01:00
|
|
|
uses: ncipollo/release-action@v1.12.0
|
2019-12-28 14:54:03 +01:00
|
|
|
with:
|
2022-11-08 23:07:44 +01:00
|
|
|
removeArtifacts: true
|
|
|
|
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
|