Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,38 @@ name: CodeQL
on:
pull_request:
branches: [ "master" ]

jobs:
codeql:
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
contents: read

strategy:
strategy:
fail-fast: true

matrix:
include:
- language: c-cpp
build-mode: manual
manual-command-list: >
manual-command-list: >
cmake -S . -B ./build -G "Ninja Multi-Config"
-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS="-O3 -Wall -std=c++23"

cmake --build ./build --config Release

- language: actions
build-mode: none

uses: VolcanusLucis/.github/.github/workflows/shared-codeql.yml@master
with:
language: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
manual-command-list: ${{ matrix.manual-command-list }}

steps:
- run: echo "Running CodeQL for ${{ matrix.language }}"
- name: Run CodeQL
uses: VolcanusLucis/.github/.github/actions/shared-codeql@master
with:
language: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
manual-command-list: ${{ matrix.manual-command-list }}

run-codeql:
permissions:
Expand All @@ -43,4 +47,4 @@ jobs:
- if: ${{ contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped') }}
run: exit 1
run: exit 1
10 changes: 0 additions & 10 deletions .github/workflows/pr-xplat-build-test-autocomplete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ on:
- 'CMake**.**'

jobs:
build:
uses: VolcanusLucis/.github/.github/workflows/build-cmake-project-presets.yml@master
with:
architecture: ''
build-tool: ''
build-type: ''
compiler: ''
target: ''
bypass: true

build-all:
if: always()
runs-on: ubuntu-latest
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/pr-xplat-build-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
name: Cross-platform Builds
permissions:
contents: read

on:
pull_request:
branches: [ 'master' ]
Expand All @@ -12,9 +9,12 @@ on:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read

strategy:
fail-fast: true

matrix:
build-tool: [ ninja ]
compiler: [ mingw64, gcc ]
Expand All @@ -27,13 +27,14 @@ jobs:
- target: linux
compiler: mingw64

uses: VolcanusLucis/.github/.github/workflows/build-cmake-project-presets.yml@master
with:
architecture: ${{ matrix.architecture }}
build-tool: ${{ matrix.build-tool }}
build-type: ${{ matrix.build-type }}
compiler: ${{ matrix.compiler }}
target: ${{ matrix.target }}
steps:
- uses: VolcanusLucis/.github/.github/actions/build-cmake-project-presets@master
with:
architecture: ${{ matrix.architecture }}
build-tool: ${{ matrix.build-tool }}
build-type: ${{ matrix.build-type }}
compiler: ${{ matrix.compiler }}
target: ${{ matrix.target }}

build-all:
if: always()
Expand Down
Loading