Trying with newlib/thumb/v8-m.main/nofp #22
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: Build clang runtime builtins | |
on: | |
workflow_dispatch: | |
# TODO: remove this next line before merging! | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- core: cortex-m3 | |
newlib_arch_path: /usr/lib/arm-none-eabi/newlib/thumb/v7-m/nofp | |
se: st33 | |
- core: cortex-m35p+nodsp | |
newlib_arch_path: /usr/lib/arm-none-eabi/newlib/thumb/v8-m.main+fp/softfp | |
se: st33k1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# TODO: remove this next line before merging! | |
ref: feat/iar/clangrt_22_from_apa | |
sparse-checkout: | | |
tools/build_clangrt_builtins.sh | |
sparse-checkout-cone-mode: false | |
- name: Comiple and copy Clang compiler-rt runtime library | |
run: | | |
./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib | |
- name: Copy libc and libm from newlib | |
run: | | |
cp ${{ matrix.target.newlib_arch_path }}/libm.a artifact/arch/${{ matrix.target.se }}/lib | |
cp ${{ matrix.target.newlib_arch_path }}/libc.a artifact/arch/${{ matrix.target.se }}/lib | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: arch-${{ matrix.target.se }} | |
path: artifact/ | |
merge: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/upload-artifact/merge@v4 | |
with: | |
name: arch | |
pattern: arch-* | |
delete-merged: true |