diff --git a/.github/workflows/code-ql.yml b/.github/workflows/code-ql.yml index 088c92ee594..1a6d26b9666 100644 --- a/.github/workflows/code-ql.yml +++ b/.github/workflows/code-ql.yml @@ -39,10 +39,10 @@ jobs: - language: c-cpp #build-mode: autobuild build-mode: manual - - language: java-kotlin - build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too. - - language: python - build-mode: none + #- language: java-kotlin + # build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too. + #- language: python + # build-mode: none #- language: ruby # build-mode: none # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' @@ -76,13 +76,20 @@ jobs: # to build your code. # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - if: matrix.build-mode == 'manual' - run: brew bundle install - - if: matrix.build-mode == 'manual' + - name: Create Build Environment + if: matrix.build-mode == 'manual' + run: > + sudo apt-get update && + sudo apt install -y cmake gcc-mingw-w64-i686 g++-mingw-w64-i686 pkg-config-mingw-w64-i686 libz-mingw-w64-dev gettext dpkg-dev wget git sudo && + sudo rm /usr/i686-w64-mingw32/lib/libz.dll.a && + sudo Packaging/windows/mingw-prep.sh + + - name: Build + if: matrix.build-mode == 'manual' shell: bash run: | - cmake -S. -Bbuild -D DEVILUTIONX_SYSTEM_SDL2=OFF -D HELLFIRE=ON - cmake --build build -j $(sysctl -n hw.physicalcpu) --target package + cmake -S. -Bbuild -DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DCMAKE_BUILD_TYPE="Release" -DCMAKE_TOOLCHAIN_FILE=../CMake/mingwcc.toolchain.cmake + cmake --build build -j $(nproc) --target package exit 1 - name: Perform CodeQL Analysis