Add macOS, Windows, & Ubuntu 22.04 Qt6 builds (#4522)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2023-04-15 13:25:51 +02:00
committed by GitHub
parent c44e7295da
commit bf6350ad79
7 changed files with 157 additions and 19 deletions
+39 -13
View File
@@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest]
qt-version: [5.15.2, 5.12.12]
qt-version: [5.15.2, 6.5.0]
pch: [true]
force-lto: [false]
plugins: [false]
@@ -190,7 +190,7 @@ jobs:
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
7z a bin/chatterino-Qt-${{ matrix.qt-version }}.pdb.7z bin/chatterino.pdb
- name: Package (windows)
if: startsWith(matrix.os, 'windows')
@@ -199,21 +199,21 @@ jobs:
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/
7z a chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip Chatterino2/
- name: Upload artifact (Windows - binary)
if: startsWith(matrix.os, 'windows') && matrix.skip_artifact != 'yes'
uses: actions/upload-artifact@v3
with:
name: chatterino-windows-x86-64-${{ matrix.qt-version }}.zip
path: build/chatterino-windows-x86-64.zip
name: chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip
path: build/chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip
- name: Upload artifact (Windows - symbols)
if: startsWith(matrix.os, 'windows') && matrix.skip_artifact != 'yes'
uses: actions/upload-artifact@v3
with:
name: chatterino-windows-x86-64-${{ matrix.qt-version }}-symbols.pdb.7z
path: build/bin/chatterino.pdb.7z
name: chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}-symbols.pdb.7z
path: build/bin/chatterino-Qt-${{ matrix.qt-version }}.pdb.7z
- name: Clean Conan cache
if: startsWith(matrix.os, 'windows')
@@ -341,15 +341,15 @@ jobs:
pwd
ls -la build || true
cd build
sh ./../.CI/CreateDMG.sh
sh ./../.CI/CreateDMG.sh ${{ matrix.qt-version }}
shell: bash
- name: Upload artifact (MacOS)
if: startsWith(matrix.os, 'macos')
uses: actions/upload-artifact@v3
with:
name: chatterino-osx-${{ matrix.qt-version }}.dmg
path: build/chatterino-osx.dmg
name: chatterino-osx-Qt-${{ matrix.qt-version }}.dmg
path: build/chatterino-osx-Qt-${{ matrix.qt-version }}.dmg
create-release:
needs: build
runs-on: ubuntu-latest
@@ -361,12 +361,22 @@ jobs:
fetch-depth: 0 # allows for tags access
- uses: actions/download-artifact@v3
with:
name: chatterino-windows-x86-64-5.15.2.zip
name: chatterino-windows-x86-64-Qt-5.15.2.zip
path: release-artifacts/
- uses: actions/download-artifact@v3
with:
name: chatterino-windows-x86-64-5.15.2-symbols.pdb.7z
name: chatterino-windows-x86-64-Qt-5.15.2-symbols.pdb.7z
path: release-artifacts/
- uses: actions/download-artifact@v3
with:
name: chatterino-windows-x86-Qt-64-6.5.0.zip
path: release-artifacts/
- uses: actions/download-artifact@v3
with:
name: chatterino-windows-x86-64-Qt-6.5.0-symbols.pdb.7z
path: release-artifacts/
- uses: actions/download-artifact@v3
@@ -386,7 +396,17 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: chatterino-osx-5.15.2.dmg
name: Chatterino-ubuntu-22.04-Qt-6.2.4.deb
path: release-artifacts/
- uses: actions/download-artifact@v3
with:
name: chatterino-osx-Qt-5.15.2.dmg
path: release-artifacts/
- uses: actions/download-artifact@v3
with:
name: chatterino-osx-Qt-6.5.0.dmg
path: release-artifacts/
- name: Copy flatpakref
@@ -394,6 +414,12 @@ jobs:
cp .CI/chatterino-nightly.flatpakref release-artifacts/
shell: bash
- name: Mark experimental
run: |
for file in *; do mv -n "$file" "$(echo $file | sed 's/\(6\(\.[[:digit:]]\)\{2\}\)/\1-EXPERIMENTAL/g')"; done
working-directory: release-artifacts
shell: bash
- name: Create release
uses: ncipollo/release-action@v1.12.0
with: