DEBUG: PR with clangrt #24
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: | |
inputs: | |
target_sdk_branch: | |
type: string | |
required: false | |
default: 'master' | |
create_pr: | |
type: boolean | |
required: false | |
default: false | |
# 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 | |
se: st33 | |
- core: cortex-m35p+nodsp | |
se: st33k1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# TODO: remove this next line before merging! | |
ref: feat/regain_control_over_libs | |
sparse-checkout: | | |
tools/build_clangrt_builtins.sh | |
sparse-checkout-cone-mode: false | |
- run: ./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o 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 | |
pr_create: | |
needs: merge | |
runs-on: ubuntu-latest | |
name: "Pull Request Create" | |
if: ${{ success() && inputs.create_pr }} | |
continue-on-error: true | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
# by default the action uses fetch-depth = 1, which creates | |
# shallow repositories from which we can't push | |
fetch-depth: 0 | |
ref: ${{ inputs.target_sdk_branch }} | |
- name: Download Binaries artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: arch | |
- name: Print matrix | |
run: ls -l |