chore: update embedded-pro/embedded-infra-lib hash to 8cd6166b45ad7671a5a41feacf7a8cb0b771d630 #302
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | |
| 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@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | |
| with: | |
| configurePreset: "host" | |
| buildPreset: "host-Debug-WithPackage" | |
| testPreset: "host" | |
| configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: hal_ti | |
| path: build/host/hal_ti-*-Linux.tar.gz | |
| if-no-files-found: error | |
| - name: Upload test logs | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | |
| with: | |
| key: ${{ github.job }}-${{ matrix.os }} | |
| max-size: 2G | |
| save: ${{ github.ref == 'refs/heads/main' }} | |
| - uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | |
| 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| 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: ["15.2.Rel1"] | |
| target: ["tm4c123gh6pm", "tm4c1294ncpdt"] | |
| steps: | |
| - name: Configure Git | |
| run: | | |
| git config --global url."https://${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install GNU Arm Embedded Toolchain ${{ matrix.gcc }} | |
| uses: carlosperate/arm-none-eabi-gcc-action@98c40e51546516419841748d3210c290df0d2c6c # v1.13.0 | |
| with: | |
| release: ${{ matrix.gcc }} | |
| - run: sudo apt-get update && sudo apt-get install ninja-build xsltproc | |
| - uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23 | |
| with: | |
| key: ${{ matrix.gcc }}-${{ matrix.configuration }}-${{ matrix.target }} | |
| max-size: 2G | |
| save: ${{ github.ref == 'refs/heads/main' }} | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: hal_ti | |
| - run: tar -zxvf hal_ti-*.tar.gz | |
| - run: mkdir install && mv hal_ti-*/* install/ | |
| - uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9 | |
| with: | |
| configurePreset: ${{ matrix.target }} | |
| buildPreset: ${{ matrix.target }}-${{ matrix.configuration }} | |
| configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']" |