File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 5858          clang-format-version : ' 19' 
5959          check-path : ${{ matrix.path['check'] }} 
6060          exclude-regex : ${{ matrix.path['exclude'] }} 
61+ 
62+   verify-format :
63+     name : Verify format status 
64+     runs-on : ubuntu-latest 
65+     if : always() 
66+     needs : format-check 
67+     steps :
68+       - name : Check format results 
69+         run : | 
70+           if [[ "${{ needs.format-check.result }}" == "failure" || "${{ needs.format-check.result }}" == "cancelled" ]]; then 
71+             echo "Format check failed or was cancelled" 
72+             exit 1 
73+           else 
74+             echo "Format check completed successfully" 
75+           fi 
Original file line number Diff line number Diff line change 3030      - name : Initialize Zephyr environment 
3131        run : | 
3232          yes | ./extra/bootstrap.sh -o=--filter=tree:0 
33+           source venv/bin/activate 
34+           echo "ZEPHYR_SDK_INSTALL_DIR=$(west config sdk.base-dir)" >> "$GITHUB_ENV" 
3335          echo "CORE_TAG=$(git describe --tags --exact-match || git describe --always)" >> "$GITHUB_ENV" 
3436          echo "CORE_ARTIFACT=ArduinoCore-zephyr-$(git describe --always)" >> "$GITHUB_ENV" 
3537          echo "BOARD_VARIANTS=$(extra/get_board_details.sh | jq -cr 'sort_by(.variant)')" >> "$GITHUB_ENV" 
4244      - name : Build variants 
4345        shell : bash 
4446        run : | 
47+           source venv/bin/activate 
4548          ./extra/build_all.sh -f 
4649
4750name : Package core 
@@ -186,13 +189,19 @@ jobs:
186189  verify-core :
187190    name : Collect job errors 
188191    runs-on : ubuntu-latest 
189-     if : cancelled() || contains(needs.*.result, 'failure' )
192+     if : always( )
190193    needs :
191194      - package-core 
192195      - test-core 
193196    steps : 
194-       - name : Notify failure 
195-         run : exit 1 
197+       - name : Check job results 
198+         run : | 
199+           if [[ "${{ needs.package-core.result }}" == "failure" || "${{ needs.test-core.result }}" == "failure" || "${{ needs.package-core.result }}" == "cancelled" || "${{ needs.test-core.result }}" == "cancelled" ]]; then 
200+             echo "One or more required jobs failed or were cancelled" 
201+             exit 1 
202+           else 
203+             echo "All required jobs completed successfully" 
204+           fi 
196205
197206publish-core :
198207    name : Publish core 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments