chore: update amp-embedded-infra-lib hash to db70a3a415c9324a6e30043bb39bf38c6ae4e394 #1917
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 | |
jobs: | |
host_build_test_ubuntu: | |
name: Host Build & Test (ubuntu-latest) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14 | |
with: | |
key: ${{ github.job }}-ubuntu-latest | |
variant: sccache | |
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5 | |
- uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 | |
with: | |
configurePreset: "host" | |
buildPreset: "host-Debug-WithPackage" | |
testPreset: "host" | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']" | |
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: hal_st | |
path: build/host/hal_st-*-Linux.tar.gz | |
if-no-files-found: error | |
- name: Upload test logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: test-logs | |
path: build/host/Testing/Temporary/ | |
host_build_test: | |
name: Host Build & Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14 | |
with: | |
key: ${{ github.job }}-${{ matrix.os }} | |
variant: sccache | |
- uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 | |
with: | |
configurePreset: "host-single-Debug" | |
buildPreset: "host-single-Debug" | |
testPreset: "host-single-Debug" | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']" | |
- name: Upload test logs | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: test-logs | |
path: build/host/Testing/Temporary/ | |
embedded_build: | |
name: Embedded Build | |
runs-on: ubuntu-latest | |
needs: [host_build_test_ubuntu] | |
strategy: | |
matrix: | |
configuration: ["RelWithDebInfo"] | |
gcc: ["10.3-2021.10"] | |
target: | |
[ | |
"stm32wb55", | |
"stm32wba52", | |
"stm32g070", | |
"stm32g431", | |
"stm32f407", | |
"stm32f429", | |
"stm32f746", | |
"stm32f767", | |
"stm32h563", | |
"stm32h573" | |
] | |
include: | |
- gcc: "8-2019-q3" | |
configuration: "RelWithDebInfo" | |
target: "stm32f767" | |
- gcc: "9-2020-q2" | |
configuration: "RelWithDebInfo" | |
target: "stm32f767" | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Install GNU Arm Embedded Toolchain ${{ matrix.gcc }} | |
uses: carlosperate/arm-none-eabi-gcc-action@f3be82dce0d93e59bb84bbc1ad67c74068e35507 # v1.10.0 | |
with: | |
release: ${{ matrix.gcc }} | |
- run: sudo apt-get update && sudo apt-get install ninja-build xsltproc | |
- uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14 | |
with: | |
key: ${{ matrix.gcc }}-${{ matrix.configuration }}-${{ matrix.target }} | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: hal_st | |
- run: tar -zxvf hal_st-*.tar.gz | |
- run: mkdir install && mv hal_st-*/* install/ | |
- uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 | |
with: | |
configurePreset: ${{ matrix.target }} | |
buildPreset: ${{ matrix.target }}-${{ matrix.configuration }} | |
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" |