ci: use ubuntu's qt on ubuntu (#956)

Co-authored-by: stonedDiscord <Tukz@gmx.de>
This commit is contained in:
lambdcalculus 2024-05-17 08:34:52 -03:00 committed by GitHub
parent 4fb61b7afd
commit 469e293a18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,9 @@ jobs:
rm -rf $ANDROID_HOME/ndk/25.2.9519653 rm -rf $ANDROID_HOME/ndk/25.2.9519653
ln -sf $ANDROID_HOME/ndk/21.4.7075529 $ANDROID_HOME/ndk/25.2.9519653 ln -sf $ANDROID_HOME/ndk/21.4.7075529 $ANDROID_HOME/ndk/25.2.9519653
- uses: jurplel/install-qt-action@v3 - name: Install Qt
if: matrix.os != 'ubuntu-latest'
uses: jurplel/install-qt-action@v3
id: qt id: qt
with: with:
version: ${{matrix.version}} version: ${{matrix.version}}
@ -84,6 +86,13 @@ jobs:
cache: true cache: true
cache-key-prefix: qt cache-key-prefix: qt
- name: Install Qt (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install qtbase5-dev libqt5websockets5-dev qttools5-dev qt5-image-formats-plugins
- name: Add tools to PATH (MinGW) - name: Add tools to PATH (MinGW)
if: matrix.platform == 'mingw81_32' if: matrix.platform == 'mingw81_32'
shell: bash shell: bash
@ -93,7 +102,7 @@ jobs:
if: contains(matrix.platform, 'msvc') if: contains(matrix.platform, 'msvc')
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1
- name: Install QtApng - name: Build QtApng
run: | run: |
git clone https://github.com/Skycoder42/QtApng.git git clone https://github.com/Skycoder42/QtApng.git
cd QtApng cd QtApng
@ -103,8 +112,19 @@ jobs:
cd ../.. cd ../..
qmake CONFIG+=install_ok QMAKE_CXXFLAGS+="-fno-sized-deallocation" QT_PLATFORM=${{matrix.platform}} qmake CONFIG+=install_ok QMAKE_CXXFLAGS+="-fno-sized-deallocation" QT_PLATFORM=${{matrix.platform}}
${{matrix.make}} ${{matrix.make}}
- name: Install QtApng
if: matrix.os != 'ubuntu-latest'
run: |
cd QtApng
${{matrix.make}} INSTALL_ROOT="${Qt5_DIR}" install ${{matrix.make}} INSTALL_ROOT="${Qt5_DIR}" install
- name: Install QtApng (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
cd QtApng
sudo ${{matrix.make}} install
- name: Install Windows Discord RPC - name: Install Windows Discord RPC
if: contains(matrix.os, 'windows') if: contains(matrix.os, 'windows')
env: env: