diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-06-15 20:16:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-15 22:16:30 -0500 |
| commit | 0be8d0f5aeb64ae9abae24c2669bb45d440d9ca6 (patch) | |
| tree | 86a020983e430bf0a18f4ab414791c1894b99b30 /.github/workflows | |
| parent | ffcd783c10b6e3d37bacae3ac61f595938a50e27 (diff) | |
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
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 37 | ||||
| -rw-r--r-- | .github/workflows/clang-tidy-review.yml | 2 |
2 files changed, 34 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d436b69e..4b2ffc53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,7 @@ jobs: - uses: actions/setup-python@master with: python-version: '3.10' + - name: actions/cache qt uses: actions/cache@master id: cache @@ -49,8 +50,16 @@ jobs: - name: Add msbuild to PATH if: matrix.platform == 'msvc2019' 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 with: version: 5.15.1 @@ -60,6 +69,10 @@ jobs: run: | git clone https://github.com/Skycoder42/QtApng.git 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}} ${{steps.qt.outputs.make}} qmake_all ${{steps.qt.outputs.make}} @@ -76,6 +89,7 @@ jobs: unzip discord_rpc.zip 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/include/discord*.h ./include/ - name: Install Linux Discord RPC if: matrix.platform == 'gcc_64' @@ -84,6 +98,7 @@ jobs: unzip discord_rpc.zip 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/include/discord*.h ./include/ - name: Install Mac Discord RPC if: matrix.os == 'macos-latest' @@ -92,6 +107,7 @@ jobs: unzip discord_rpc.zip 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/include/discord*.h ./include/ - name: Install Windows BASS if: contains(matrix.os, 'windows') @@ -169,7 +185,7 @@ jobs: - name: qmake 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 run: | @@ -180,8 +196,19 @@ jobs: working-directory: ${{github.workspace}}/bin/ shell: bash 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/ + 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 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/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 + hdiutil create -volname "Attorney_Online" -srcfolder "./Attorney_Online.app" -ov -format UDZO "Attorney_Online.dmg" + rm -r ./Attorney_Online.app/ - name: Deploy Android if: matrix.platform == 'android' diff --git a/.github/workflows/clang-tidy-review.yml b/.github/workflows/clang-tidy-review.yml index 8fa0f046..673aa4a4 100644 --- a/.github/workflows/clang-tidy-review.yml +++ b/.github/workflows/clang-tidy-review.yml @@ -63,7 +63,7 @@ jobs: id: review with: 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' max_comments: 10 # If there are any comments, fail the check |
