Skip to content

Commit f8d573c

Browse files
DEBUG: PR with clangrt 5
1 parent 46df396 commit f8d573c

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

.github/workflows/build_clangrt_builtins.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,35 @@ on:
1616
push:
1717

1818
jobs:
19+
20+
define-matrix:
21+
runs-on: ubuntu-latest
22+
23+
outputs:
24+
cores: ${{ steps.cores.outputs.cores }}
25+
ses: ${{ steps.se_names.outputs.se_names }}
26+
27+
steps:
28+
- name: Define MCU cores
29+
id: cores
30+
run: |
31+
echo 'cores=["cortex-m3", "cortex-m35p+nodsp"]' >> "$GITHUB_OUTPUT"
32+
33+
- name: Define SE names
34+
id: se_names
35+
run: |
36+
echo 'se_names=["st33", "st33k1"]' >> "$GITHUB_OUTPUT"
37+
1938
build:
39+
needs: define-matrix
2040
runs-on: ubuntu-latest
2141
container:
2242
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
2343
strategy:
2444
fail-fast: false
2545
matrix:
26-
target:
27-
- core: cortex-m3
28-
se: st33
29-
- core: cortex-m35p+nodsp
30-
se: st33k1
46+
cores: ${{ fromJSON(needs.define-matrix.outputs.cores) }}
47+
se_names: ${{ fromJSON(needs.define-matrix.outputs.se_names) }}
3148

3249
steps:
3350
- uses: actions/checkout@v4
@@ -38,7 +55,7 @@ jobs:
3855
tools/build_clangrt_builtins.sh
3956
sparse-checkout-cone-mode: false
4057

41-
- run: ./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
58+
- run: ./tools/build_clangrt_builtins.sh -t ${{ matrix.target.cores }} -o artifact/arch/${{ matrix.target.se_names }}/lib
4259

4360
- uses: actions/upload-artifact@v4
4461
with:
@@ -56,11 +73,14 @@ jobs:
5673
delete-merged: true
5774

5875
pr_create:
59-
needs: merge
76+
needs: merge, define-matrix
6077
runs-on: ubuntu-latest
61-
name: "Pull Request Create"
6278
if: ${{ success() && inputs.create_pr }}
6379
continue-on-error: true
80+
strategy:
81+
fail-fast: false
82+
matrix:
83+
se_names: ${{ fromJSON(needs.define-matrix.outputs.se_names) }}
6484
steps:
6585
- name: Clone repository
6686
uses: actions/checkout@v4
@@ -75,13 +95,13 @@ jobs:
7595
with:
7696
name: arch
7797

78-
- name: Print matrix
98+
- name: PR creation
7999
env:
80100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81101
run: |
82102
ls -l
83103
git status
84104
git switch --create sdk_libs_update
85-
git add arch/${{ matrix.target.se }}/lib
105+
git add arch/${{ matrix.target.se_names }}/lib
86106
git status
87107
gh pr create -B ${{ inputs.target_sdk_branch }} --title '[SDK_LIBS_UPDATE] Updating static SDK libraries' --body 'Created by Github action'

0 commit comments

Comments
 (0)