build(deps): bump github/codeql-action from 2.21.9 to 2.22.3 #170
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 2 | |
GTEST_COLOR: 1 | |
jobs: | |
host_build_test: | |
name: Host Build & Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
persist-credentials: false | |
- uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10 | |
with: | |
key: ${{ github.job }}-${{ matrix.os }} | |
variant: sccache | |
- uses: lukka/run-cmake@c2b72aff009141774c5a5fabe74ea46c8c04d9c4 # v10.6 | |
with: | |
configurePreset: "ContinuousIntegration" | |
buildPreset: "ContinuousIntegration" | |
testPreset: "ContinuousIntegration" | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']" | |
- name: Upload test logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: test-logs | |
path: build/ContinuousIntegration/Testing/Temporary/ | |
embedded_build: | |
name: Embedded Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
configuration: ["RelWithDebInfo"] | |
gcc: [ "10.3-2021.10" ] | |
target: ["stm32f407", "stm32f767", "stm32f746"] | |
include: | |
- gcc: "7-2018-q2" | |
configuration: "RelWithDebInfo" | |
target: "stm32f767" | |
- gcc: "8-2019-q3" | |
configuration: "RelWithDebInfo" | |
target: "stm32f767" | |
- gcc: "9-2020-q2" | |
configuration: "RelWithDebInfo" | |
target: "stm32f767" | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
persist-credentials: false | |
- name: Install GNU Arm Embedded Toolchain ${{ matrix.gcc }} | |
uses: carlosperate/arm-none-eabi-gcc-action@6a221d7c85f5b36647d6e9b25e874abf187409d3 | |
with: | |
release: ${{ matrix.gcc }} | |
- uses: hendrikmuhs/ccache-action@6d1841ec156c39a52b1b23a810da917ab98da1f4 # v1.2.10 | |
with: | |
key: ${{ matrix.gcc }}-${{ matrix.configuration }} | |
- run: | | |
sudo apt-get update && sudo apt-get install --no-install-recommends ninja-build xsltproc | |
echo "::add-matcher::.github/matchers/gcc-problem-matcher.json" | |
cmake --preset host -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
cmake --build --preset host-${{ matrix.configuration }} | |
cmake --preset ${{ matrix.target }} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
cmake --build --preset ${{ matrix.target }}-${{ matrix.configuration }} |