chore: update embedded-pro/embedded-infra-lib hash to 81a7c1d503d68e2… #43
This file contains hidden or 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: | |
| - name: Configure Git | |
| run: | | |
| git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
| git config --global url."https://github.com/".insteadOf "git@github.com:" | |
| git config --global --add safe.directory '*' | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 | |
| with: | |
| key: ${{ github.job }}-ubuntu-latest | |
| max-size: 2G | |
| save: ${{ github.ref == 'refs/heads/main' }} | |
| - uses: seanmiddleditch/gha-setup-ninja@3b1f8f94a2f8254bd26914c4ab9474d4f0015f67 # v6 | |
| - uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 | |
| with: | |
| configurePreset: "host" | |
| buildPreset: "host-Debug-WithPackage" | |
| testPreset: "host" | |
| configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| 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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| 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] | |
| steps: | |
| - name: Configure Git | |
| run: | | |
| git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 | |
| with: | |
| key: ${{ github.job }}-${{ matrix.os }} | |
| max-size: 2G | |
| save: ${{ github.ref == 'refs/heads/main' }} | |
| - 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=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
| - name: Upload test logs | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: test-logs | |
| path: build/host/Testing/Temporary/ | |
| host_build_clang_msvc: | |
| name: Windows Host Build from Devcontainer | |
| runs-on: [ubuntu-latest] | |
| container: ghcr.io/philips-software/amp-devcontainer-cpp:v5.6.0@sha256:884732270a353e8446f813e649f2918ac53ce446a6c0dd4f7f84a6d58fb26bce # v5.6.0 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| id: cache-winsdk | |
| with: | |
| path: /winsdk | |
| key: cache-winsdk-10.0.26100-14.43.17.13 | |
| - if: ${{ steps.cache-winsdk.outputs.cache-hit != 'true' }} | |
| run: xwin --accept-license --sdk-version "10.0.26100" --crt-version "14.43.17.13" splat --preserve-ms-arch-notation --include-debug-libs && mv .xwin-cache/splat/ /winsdk | |
| - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 | |
| with: | |
| key: ${{ github.job }} | |
| - uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 | |
| with: | |
| configurePreset: "Windows" | |
| buildPreset: "Windows-Release" | |
| configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
| 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", | |
| "stm32wba65", | |
| "stm32g070", | |
| "stm32g431", | |
| "stm32f407", | |
| "stm32f429", | |
| "stm32f746", | |
| "stm32f767", | |
| "stm32h563", | |
| "stm32h573" | |
| ] | |
| steps: | |
| - name: Configure Git | |
| run: | | |
| git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install GNU Arm Embedded Toolchain ${{ matrix.gcc }} | |
| uses: carlosperate/arm-none-eabi-gcc-action@a532c97fbfff58385beb2247ae1464dc4cc71724 # v1.10.1 | |
| with: | |
| release: ${{ matrix.gcc }} | |
| - run: sudo apt-get update && sudo apt-get install ninja-build xsltproc | |
| - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 | |
| with: | |
| key: ${{ matrix.gcc }}-${{ matrix.configuration }}-${{ matrix.target }} | |
| max-size: 2G | |
| save: ${{ github.ref == 'refs/heads/main' }} | |
| - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 | |
| 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']" |