Shutup ci (#782)
* stop magic number spam * forgot to remove avoid * Update .clang-format * yeet qt translations and unused image formats * also remove bearer and styles * remove another svg dll * create dmg on mac * forgot .app * delete folder after packing * skip runtime webkit and opengl * switch back to fixed qt setup * try installing the NDK * update discord rpc includes * enable discord in CI builds * copypaste lmao * windows doesn't have export * forgot the quotes * guess i'm not root * downgrade ubuntu * lets hope ubuntu 18 comes with android ndk * it doesn't * try to update libpng * script wasn't executable * downgrade android * typo * use qmake to enable discord * exit code 101 very funny qmake * its in defines not just true * can i use qmake like this? * add discord * exclude android from discord * android runs on linux after all
This commit is contained in:
parent
ffcd783c10
commit
0be8d0f5ae
@ -1,2 +1,3 @@
|
|||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
BreakBeforeBraces: Stroustrup
|
BreakBeforeBraces: Stroustrup
|
||||||
|
AllowShortIfStatementsOnASingleLine: true
|
37
.github/workflows/build.yml
vendored
37
.github/workflows/build.yml
vendored
@ -39,6 +39,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@master
|
- uses: actions/setup-python@master
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: actions/cache qt
|
- name: actions/cache qt
|
||||||
uses: actions/cache@master
|
uses: actions/cache@master
|
||||||
id: cache
|
id: cache
|
||||||
@ -49,8 +50,16 @@ jobs:
|
|||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
if: matrix.platform == 'msvc2019'
|
if: matrix.platform == 'msvc2019'
|
||||||
uses: microsoft/setup-msbuild@master
|
uses: microsoft/setup-msbuild@master
|
||||||
|
|
||||||
- uses: stonedDiscord/action-setup-qt@master
|
- name: Downgrade Android NDK
|
||||||
|
if: matrix.platform == 'android'
|
||||||
|
run: |
|
||||||
|
ANDROID_ROOT=/usr/local/lib/android
|
||||||
|
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
|
||||||
|
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
|
||||||
|
ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT
|
||||||
|
|
||||||
|
- uses: Skycoder42/action-setup-qt@master
|
||||||
id: qt
|
id: qt
|
||||||
with:
|
with:
|
||||||
version: 5.15.1
|
version: 5.15.1
|
||||||
@ -60,6 +69,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git clone https://github.com/Skycoder42/QtApng.git
|
git clone https://github.com/Skycoder42/QtApng.git
|
||||||
cd QtApng
|
cd QtApng
|
||||||
|
cd src/3rdparty
|
||||||
|
chmod +x get_libs.sh
|
||||||
|
./get_libs.sh 1.2.12 1.6.37
|
||||||
|
cd ../..
|
||||||
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}}
|
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}}
|
||||||
${{steps.qt.outputs.make}} qmake_all
|
${{steps.qt.outputs.make}} qmake_all
|
||||||
${{steps.qt.outputs.make}}
|
${{steps.qt.outputs.make}}
|
||||||
@ -76,6 +89,7 @@ jobs:
|
|||||||
unzip discord_rpc.zip
|
unzip discord_rpc.zip
|
||||||
cp ./discord-rpc/win32-dynamic/lib/discord-rpc.lib ./lib/
|
cp ./discord-rpc/win32-dynamic/lib/discord-rpc.lib ./lib/
|
||||||
cp ./discord-rpc/win32-dynamic/bin/discord-rpc.dll ./bin/
|
cp ./discord-rpc/win32-dynamic/bin/discord-rpc.dll ./bin/
|
||||||
|
cp ./discord-rpc/win32-dynamic/include/discord*.h ./include/
|
||||||
|
|
||||||
- name: Install Linux Discord RPC
|
- name: Install Linux Discord RPC
|
||||||
if: matrix.platform == 'gcc_64'
|
if: matrix.platform == 'gcc_64'
|
||||||
@ -84,6 +98,7 @@ jobs:
|
|||||||
unzip discord_rpc.zip
|
unzip discord_rpc.zip
|
||||||
cp ./discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ./lib/
|
cp ./discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ./lib/
|
||||||
cp ./discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ./bin/
|
cp ./discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ./bin/
|
||||||
|
cp ./discord-rpc/linux-dynamic/include/discord*.h ./include/
|
||||||
|
|
||||||
- name: Install Mac Discord RPC
|
- name: Install Mac Discord RPC
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
@ -92,6 +107,7 @@ jobs:
|
|||||||
unzip discord_rpc.zip
|
unzip discord_rpc.zip
|
||||||
cp ./discord-rpc/osx-dynamic/lib/libdiscord-rpc.dylib ./lib/
|
cp ./discord-rpc/osx-dynamic/lib/libdiscord-rpc.dylib ./lib/
|
||||||
cp ./discord-rpc/osx-dynamic/lib/libdiscord-rpc.dylib ./bin/
|
cp ./discord-rpc/osx-dynamic/lib/libdiscord-rpc.dylib ./bin/
|
||||||
|
cp ./discord-rpc/osx-dynamic/include/discord*.h ./include/
|
||||||
|
|
||||||
- name: Install Windows BASS
|
- name: Install Windows BASS
|
||||||
if: contains(matrix.os, 'windows')
|
if: contains(matrix.os, 'windows')
|
||||||
@ -169,7 +185,7 @@ jobs:
|
|||||||
|
|
||||||
- name: qmake
|
- name: qmake
|
||||||
run: |
|
run: |
|
||||||
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} ANDROID_ABIS="armeabi-v7a"
|
qmake DEFINES+=DISCORD CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} ANDROID_ABIS="armeabi-v7a"
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
@ -180,8 +196,19 @@ jobs:
|
|||||||
working-directory: ${{github.workspace}}/bin/
|
working-directory: ${{github.workspace}}/bin/
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
windeployqt .
|
windeployqt --no-quick-import --no-translations --no-virtualkeyboard --no-compiler-runtime --no-webkit2 --no-opengl-sw .
|
||||||
cp ../QtApng/plugins/imageformats/qapng.dll ./imageformats/
|
cp ../QtApng/plugins/imageformats/qapng.dll ./imageformats/
|
||||||
|
rm ./imageformats/qtiff.dll
|
||||||
|
rm ./imageformats/qjpeg.dll
|
||||||
|
rm ./imageformats/qicns.dll
|
||||||
|
rm ./imageformats/qico.dll
|
||||||
|
rm ./imageformats/qsvg.dll
|
||||||
|
rm ./imageformats/qtga.dll
|
||||||
|
rm ./imageformats/qwbmp.dll
|
||||||
|
rm ./Qt5Svg.dll
|
||||||
|
rm -r iconengines
|
||||||
|
rm -r bearer
|
||||||
|
rm -r styles
|
||||||
|
|
||||||
- name: Deploy Mac
|
- name: Deploy Mac
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
@ -196,6 +223,8 @@ jobs:
|
|||||||
install_name_tool -change @loader_path/libbassmidi.dylib @rpath/libbassmidi.dylib ./Attorney_Online.app/Contents/MacOS/Attorney_Online
|
install_name_tool -change @loader_path/libbassmidi.dylib @rpath/libbassmidi.dylib ./Attorney_Online.app/Contents/MacOS/Attorney_Online
|
||||||
install_name_tool -change @loader_path/libdiscord-rpc.dylib @rpath/libdiscord-rpc.dylib ./Attorney_Online.app/Contents/MacOS/Attorney_Online
|
install_name_tool -change @loader_path/libdiscord-rpc.dylib @rpath/libdiscord-rpc.dylib ./Attorney_Online.app/Contents/MacOS/Attorney_Online
|
||||||
install_name_tool -change @loader_path/libqapng.dylib @rpath/libqapng.dylib ./Attorney_Online.app/Contents/MacOS/Attorney_Online
|
install_name_tool -change @loader_path/libqapng.dylib @rpath/libqapng.dylib ./Attorney_Online.app/Contents/MacOS/Attorney_Online
|
||||||
|
hdiutil create -volname "Attorney_Online" -srcfolder "./Attorney_Online.app" -ov -format UDZO "Attorney_Online.dmg"
|
||||||
|
rm -r ./Attorney_Online.app/
|
||||||
|
|
||||||
- name: Deploy Android
|
- name: Deploy Android
|
||||||
if: matrix.platform == 'android'
|
if: matrix.platform == 'android'
|
||||||
|
2
.github/workflows/clang-tidy-review.yml
vendored
2
.github/workflows/clang-tidy-review.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
|||||||
id: review
|
id: review
|
||||||
with:
|
with:
|
||||||
build_dir: 'build'
|
build_dir: 'build'
|
||||||
clang_tidy_checks: '-*,performance-*,readability-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,mpi-*,misc-*,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-init-variables,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-avoid-magic-numbers'
|
clang_tidy_checks: '-*,performance-*,readability-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,mpi-*,misc-*,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-init-variables,-cppcoreguidelines-pro-type-member-init,-*-magic-numbers'
|
||||||
apt_packages: 'pkg-config,libzip-dev,libglu1-mesa-dev,libpulse-dev'
|
apt_packages: 'pkg-config,libzip-dev,libglu1-mesa-dev,libpulse-dev'
|
||||||
max_comments: 10
|
max_comments: 10
|
||||||
# If there are any comments, fail the check
|
# If there are any comments, fail the check
|
||||||
|
@ -29,7 +29,9 @@ QMAKE_LFLAGS += -Wl,-rpath,"'\$$ORIGIN/lib'"
|
|||||||
# DEFINES += DISCORD
|
# DEFINES += DISCORD
|
||||||
|
|
||||||
contains(DEFINES, DISCORD) {
|
contains(DEFINES, DISCORD) {
|
||||||
LIBS += -ldiscord-rpc
|
win32:LIBS += -ldiscord-rpc
|
||||||
|
linux:!android:LIBS += -ldiscord-rpc
|
||||||
|
mac:LIBS += -ldiscord-rpc
|
||||||
}
|
}
|
||||||
|
|
||||||
# As of 2.8.5, BASS and BASSOPUS are required for all platforms. Qt Multimedia
|
# As of 2.8.5, BASS and BASSOPUS are required for all platforms. Qt Multimedia
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace AttorneyOnline {
|
namespace AttorneyOnline {
|
||||||
|
|
||||||
#ifdef DISCORD
|
#if defined(DISCORD) && !defined(ANDROID)
|
||||||
Discord::Discord()
|
Discord::Discord()
|
||||||
{
|
{
|
||||||
DiscordEventHandlers handlers;
|
DiscordEventHandlers handlers;
|
||||||
|
Loading…
Reference in New Issue
Block a user