Skip to content

Commit

Permalink
add ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
Viatorus committed Oct 14, 2024
1 parent 507dea1 commit 6fd31e5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6fd31e5

Please sign in to comment.