atrooney-online-2/.github/workflows/clang-tidy-review.yml
stonedDiscord d87371b65e
GitHub android ci (#767)
* try this matrix thing

* syntax error

* use my own qt installer so it actually works

* allow changing path

* whoops cant have it twice

* get the right version of discord rpc

* get correct bass

* try to fix windows

* overwrite bass files

* forgot to delete these

* here's your version bro

* what did we even use catch2 for??

* linux doesnt have a c folder

* android bass

* switch from cmake to qmake

* opus dylib

* we don't install

* put bass in a subfolder so we don't build the stupid examples

* was using wrong arch for android

* fix up gitignore

* get correct artifact folder

* lets hope qmake will ignore the ABI for all the other platforms

* use platform name for artifact

* copy dlls into bin folder

* lmao i yeeted the folder

* create folder

* use more recent mingw

* windows uses dlls

* 2017 doesn't work

* our libs are 64 bit

* install msvc

* shitty ms documentation

* ok ms

* wrong directory for deploy

* copy apng

* use correct image for msvc2019

* deploy android

* 32bit windows it is

* adroideploy

* try this

* Update build.yml

* move libs

* armeabi-v7a

* fix android build files

* only get linux bass for linux

* don't try to install discord on android

* deploy mac

* get rid of double permission warning

* define filename for APK

* add mac dependencies

* put android bass in the correct folder

* mac apng

* android apng

* remove old CI

* ask for storage permissions

* qt bug ..........

* update clang-tidy-review

* update everything

* fuck you lukka

* fuck you jurplel for merging that shitty PR that broke everything

* give it what it wants

* Update clang-tidy-review.yml

* github is failing it because it's too big

* wait for the user and request a proper permission string

* underscore moment

* use write external storage instead

* try this instead

* 082 fails with docker again
2022-05-24 21:16:04 +02:00

72 lines
2.2 KiB
YAML

name: clang-tidy-review
on: [pull_request]
jobs:
compile:
name: ${{matrix.buildname}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
buildname: 'clang-tidy'
triplet: x64-linux
compiler: clang_64
qt: '5.15.2'
steps:
- uses: actions/checkout@master
- name: Restore Qt cache
uses: actions/cache@master
id: cache-qt
with:
path: ${{github.workspace}}/Qt/${{matrix.qt}}
key: ${{matrix.os}}-qt-${{matrix.qt}}-cache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{matrix.qt}}
dir: ${{github.workspace}}
cached: ${{steps.cache-qt.outputs.cache-hit}}
aqtversion: '==1.1.2'
- name: Install Catch2
shell: bash
run: |
curl -L https://github.com/catchorg/Catch2/archive/v2.13.4.tar.gz -o catch2.tar.gz
tar xvf catch2.tar.gz
cd Catch2-2.13.4
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
- name: Use CMake 3.20.1
uses: lukka/get-cmake@main
- name: Generate compile_commands.json
uses: lukka/run-cmake@v3
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: '${{github.workspace}}/CMakeLists.txt'
buildDirectory: '${{github.workspace}}/build'
cmakeAppendedArgs: >-
-DCMAKE_GLOBAL_AUTOGEN_TARGET=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DENABLE_CLAZY:BOOL=ON
buildWithCMakeArgs: >-
--target autogen
- uses: ZedThree/clang-tidy-review@v0.8.3
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'
apt_packages: 'pkg-config,libzip-dev,libglu1-mesa-dev,libpulse-dev'
max_comments: 10
# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1