diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5ef47..5aab92b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -280,3 +280,34 @@ jobs: # with: # github-token: ${{ secrets.GITHUB_TOKEN }} # path-to-lcov: build/test/size_test/size-coverage.info + + link-test-embedded: + strategy: + matrix: + preset: [ ci-link-embedded ] + + runs-on: ubuntu-22.04 + + env: + DOWNLOAD_LINK: https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz + + steps: + - uses: actions/checkout@v3 + + - name: Cache toolchain + id: cache-toolchain + uses: actions/cache@v2 + with: + path: arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi + key: ${{ env.DOWNLOAD_LINK }} + + - name: Install GCC ARM none eabi + if: steps.cache-toolchain.outputs.cache-hit != 'true' + run: | + curl -L $DOWNLOAD_LINK | tar xJ + + - name: Configure + run: cmake --preset=${{ matrix.preset }} -DCMAKE_BUILD_TYPE=MinSizeRel + + - name: Build + run: cmake --build build/test/link_test -j $(nproc)