diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..118a9827 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,51 @@ +# Documentation: https://wiki.unvanquished.net/wiki/Continuous_integration + +skip_branch_with_pr: true + +only_commits: + files: + - .appveyor.yml + - example1/ + - example2/ + - example3/ + # The rest of this list should stay in sync with azure-pipelines.yml + - crunch/ + - crnlib/ + - inc/ + - CMakeLists.txt + +environment: + matrix: + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + generator: Visual Studio 16 2019 + platform: x64 + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + generator: Visual Studio 16 2019 + platform: win32 + +build: + parallel: true + +build_script: + # simple line break: space + # double line break: line break + + # The CFLAGS/CXXFLAGS env vars *prepend* to CMAKE__FLAGS rather than overwriting. + # /Wv pins warnings to a specific compiler version so that new ones + # don't make the build error after Appveyor updates the compiler. + - cmd: > + echo %NUMBER_OF_PROCESSORS% + set CMAKE_BUILD_PARALLEL_LEVEL=%NUMBER_OF_PROCESSORS% + + cmake --version + + set CFLAGS=/Wv:19.29.30037 + set CXXFLAGS=/Wv:19.29.30037 + + cmake + -Wdev -Wdeprecated + -G"%generator%" -A"%platform%" + -DBUILD_CRUNCH=ON -DBUILD_SHARED_LIBCRN=ON -DBUILD_EXAMPLES=ON + -S. -Bbuild + + cmake --build build --config Release diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 292a604b..ee6c8de2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -69,10 +69,11 @@ jobs: - if: matrix.build-mode == 'manual' shell: bash run: | - set -x + set -xe sudo apt-get update sudo apt-get -y -q --no-install-recommends install ninja-build export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc)" + echo "${CMAKE_BUILD_PARALLEL_LEVEL}" cmake -S. -Bbuild -GNinja -DBUILD_CRUNCH=ON -DBUILD_SHARED_LIBCRN=ON cmake --build build