Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Aug 27, 2024
1 parent 7d3497a commit f7a78d9
Showing 1 changed file with 35 additions and 34 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,35 @@ jobs:
fail-fast: false
matrix:
include:
- name: c-cpp (auto)
language: c-cpp
build-mode: autobuild
- name: c-cpp (win-x86)
language: c-cpp
build-mode: manual
version: win-x86
cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DCMAKE_TOOLCHAIN_FILE=../CMake/mingwcc.toolchain.cmake'
#- name: c-cpp (auto)
# language: c-cpp
# build-mode: autobuild
#- name: c-cpp (win-x86)
# language: c-cpp
# build-mode: manual
# version: win-x86
# cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DCMAKE_TOOLCHAIN_FILE=../CMake/mingwcc.toolchain.cmake'
- name: c-cpp (win-x64)
language: c-cpp
build-mode: manual
version: win-x64
cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DCMAKE_TOOLCHAIN_FILE=../CMake/mingwcc64.toolchain.cmake'
- name: c-cpp (linux-x64)
language: c-cpp
build-mode: manual
version: linux-x64
cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DCMAKE_INSTALL_PREFIX=/usr'
- name: c-cpp (mac-x64)
language: c-cpp
build-mode: manual
version: mac-x64
cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DMACOSX_STANDALONE_APP_BUNDLE=ON'
- name: java
language: java-kotlin
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
- name: python
language: python
build-mode: none
#- name: c-cpp (linux-x64)
# language: c-cpp
# build-mode: manual
# version: linux-x64
# cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DCMAKE_INSTALL_PREFIX=/usr'
#- name: c-cpp (mac-x64)
# language: c-cpp
# build-mode: manual
# version: mac-x64
# cmakeargs: '-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF -DDEVILUTIONX_SYSTEM_SDL2=OFF -DUSE_PATCH=ON -DHELLFIRE=ON -DMACOSX_STANDALONE_APP_BUNDLE=ON'
#- name: java
# language: java-kotlin
# build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
#- name: python
# 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'
Expand All @@ -85,6 +85,7 @@ jobs:
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
debug: true
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand All @@ -106,21 +107,21 @@ jobs:
sudo rm /usr/i686-w64-mingw32/lib/libz.dll.a &&
sudo Packaging/windows/mingw-prep.sh
- name: Create Build Environment
- name: Create Build Environment
if: matrix.version == 'win-x64'
run: >
sudo apt-get update &&
sudo apt-get install -y cmake gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 pkg-config-mingw-w64-x86-64 libz-mingw-w64-dev dpkg-dev wget git sudo &&
sudo rm /usr/x86_64-w64-mingw32/lib/libz.dll.a &&
sudo Packaging/windows/mingw-prep.sh
run: >
sudo apt-get update &&
sudo apt-get install -y cmake gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 pkg-config-mingw-w64-x86-64 libz-mingw-w64-dev dpkg-dev wget git sudo &&
sudo rm /usr/x86_64-w64-mingw32/lib/libz.dll.a &&
sudo Packaging/windows/mingw-prep.sh
- name: Create Build Environment
- name: Create Build Environment
if: matrix.version == 'linux-x64'
run: Packaging/nix/debian-host-prep.sh
run: Packaging/nix/debian-host-prep.sh

- name: Create Build Environment
- name: Create Build Environment
if: matrix.version == 'mac-x64'
run: brew bundle install
run: brew bundle install

# TODO: -j $(nproc) vs. -j $(sysctl -n hw.physicalcpu)
- name: Build
Expand Down

0 comments on commit f7a78d9

Please sign in to comment.