build(deps): bump oxsecurity/megalinter from 7.1.0 to 7.2.1 #1572
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: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
merge_group: | |
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_ubuntu: | |
name: Host Build & Test (ubuntu-latest) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
persist-credentials: false | |
- uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9 | |
with: | |
key: ${{ github.job }}-ubuntu-latest | |
variant: sccache | |
- uses: lukka/run-cmake@c2b72aff009141774c5a5fabe74ea46c8c04d9c4 # v10.6 | |
with: | |
configurePreset: "ContinuousIntegration" | |
buildPreset: "ContinuousIntegrationWithPackage" | |
testPreset: "ContinuousIntegration" | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']" | |
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | |
with: | |
name: emil | |
path: build/ContinuousIntegration/emil-*-Linux.tar.gz | |
if-no-files-found: error | |
- name: Upload test logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | |
with: | |
name: test-logs | |
path: build/ContinuousIntegration/Testing/Temporary/ | |
host_build_test: | |
name: Host Build & Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, windows-2019] | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
persist-credentials: false | |
- uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9 | |
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@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | |
with: | |
name: test-logs | |
path: build/ContinuousIntegration/Testing/Temporary/ | |
embedded_build: | |
name: Embedded Build | |
runs-on: ubuntu-latest | |
needs: [host_build_test_ubuntu] | |
strategy: | |
matrix: | |
gcc: ["7-2018-q2", "8-2019-q3", "9-2020-q2", "10.3-2021.10"] | |
configuration: ["RelWithDebInfo"] | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
persist-credentials: false | |
- name: Install GNU Arm Embedded Toolchain ${{ matrix.gcc }} | |
uses: carlosperate/arm-none-eabi-gcc-action@a7c8bcefde49bdeb04516c8364dd7b017fb22342 # v1.7.0 | |
with: | |
release: ${{ matrix.gcc }} | |
- run: sudo apt-get update && sudo apt-get install ninja-build | |
- uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9 | |
with: | |
key: ${{ github.job }}-${{ matrix.gcc }}-${{ matrix.configuration }} | |
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 | |
with: | |
name: emil | |
- run: tar -zxvf emil-*.tar.gz | |
- run: mkdir install && mv emil-*/* install/ | |
- uses: lukka/run-cmake@c2b72aff009141774c5a5fabe74ea46c8c04d9c4 # v10.6 | |
with: | |
configurePreset: "Embedded" | |
buildPreset: "Embedded-${{ matrix.configuration }}" | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
rtos: | |
name: Embedded Build - RTOS | |
runs-on: ubuntu-latest | |
needs: [host_build_test_ubuntu] | |
strategy: | |
matrix: | |
rtos: ["FreeRTOS", "ThreadX"] | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
persist-credentials: false | |
- name: Install GNU Arm Embedded Toolchain "10.3-2021.10" | |
uses: carlosperate/arm-none-eabi-gcc-action@a7c8bcefde49bdeb04516c8364dd7b017fb22342 # v1.7.0 | |
with: | |
release: "10.3-2021.10" | |
- run: sudo apt-get update && sudo apt-get install ninja-build | |
- uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9 | |
with: | |
key: ${{ github.job }} | |
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 | |
with: | |
name: emil | |
- run: tar -zxvf emil-*.tar.gz | |
- run: mkdir install && mv emil-*/* install/ | |
- uses: lukka/run-cmake@c2b72aff009141774c5a5fabe74ea46c8c04d9c4 # v10.6 | |
with: | |
configurePreset: "Embedded-${{ matrix.rtos }}" | |
buildPreset: "Embedded-${{ matrix.rtos }}-RelWithDebInfo" | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" |