11name : Build clang runtime builtins
2+ permissions :
3+ contents : read
24
35on :
46 workflow_dispatch :
@@ -37,14 +39,15 @@ jobs:
3739 steps :
3840 - uses : actions/checkout@v4
3941 with :
40- # TODO: remove this next line before merging!
41- ref : feat/regain_control_over_libs
4242 sparse-checkout : |
4343 tools/build_clangrt_builtins.sh
44+ tools/build_newlib.sh
4445 sparse-checkout-cone-mode : false
4546
4647 - run : ./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
4748
49+ - run : ./tools/build_newlib.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
50+
4851 - uses : actions/upload-artifact@v4
4952 with :
5053 name : arch-${{ matrix.target.se }}
6568 runs-on : ubuntu-latest
6669 if : ${{ success() && inputs.create_pr }}
6770 continue-on-error : true
71+ permissions :
72+ contents : write
73+ pull-requests : write
6874 steps :
6975 - name : Clone repository
7076 uses : actions/checkout@v4
@@ -82,11 +88,12 @@ jobs:
8288 - name : PR creation
8389 env :
8490 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91+ TARGET_BRANCH : ${{ inputs.target_sdk_branch }}
8592 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"
8996 git add -A .
9097 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