1
1
name : Build clang runtime builtins
2
+ permissions :
3
+ contents : read
2
4
3
5
on :
4
6
workflow_dispatch :
@@ -37,14 +39,15 @@ jobs:
37
39
steps :
38
40
- uses : actions/checkout@v4
39
41
with :
40
- # TODO: remove this next line before merging!
41
- ref : feat/regain_control_over_libs
42
42
sparse-checkout : |
43
43
tools/build_clangrt_builtins.sh
44
+ tools/build_newlib.sh
44
45
sparse-checkout-cone-mode : false
45
46
46
47
- run : ./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
47
48
49
+ - run : ./tools/build_newlib.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
50
+
48
51
- uses : actions/upload-artifact@v4
49
52
with :
50
53
name : arch-${{ matrix.target.se }}
65
68
runs-on : ubuntu-latest
66
69
if : ${{ success() && inputs.create_pr }}
67
70
continue-on-error : true
71
+ permissions :
72
+ contents : write
73
+ pull-requests : write
68
74
steps :
69
75
- name : Clone repository
70
76
uses : actions/checkout@v4
@@ -82,11 +88,12 @@ jobs:
82
88
- name : PR creation
83
89
env :
84
90
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91
+ TARGET_BRANCH : ${{ inputs.target_sdk_branch }}
85
92
run : |
86
- git config --global user.email ${{ env. GIT_USER_EMAIL }}
87
- git config --global user.name ${{ env. GIT_USER_NAME }}
88
- git switch --create ${{ env. UPDATE_BRANCH }}
93
+ git config --global user.email "$ GIT_USER_EMAIL"
94
+ git config --global user.name "$ GIT_USER_NAME"
95
+ git switch --create "$ UPDATE_BRANCH"
89
96
git add -A .
90
97
git commit -m 'Updating static SDK libraries'
91
- git push -u origin ${{ env. UPDATE_BRANCH }}
92
- gh pr create -B ${{ inputs.target_sdk_branch }} --title '[SDK_LIBS_UPDATE] Updating static SDK libraries' --body 'Created by Github workflow "${{ github.workflow }}", job "${{ github.job }}", run "${{ github.run_id }}".'
98
+ git push -u origin "$ UPDATE_BRANCH"
99
+ gh pr create -B "$TARGET_BRANCH" --title '[SDK_LIBS_UPDATE] Updating static SDK libraries' --body 'Created by Github workflow "${{ github.workflow }}", job "${{ github.job }}", run "${{ github.run_id }}".'
0 commit comments