run arm-iar with non-forked PR
This commit is contained in:
		| @@ -30,7 +30,7 @@ jobs: | |||||||
|  |  | ||||||
|             # only build IAR if not forked PR, since IAR token is not shared |             # only build IAR if not forked PR, since IAR token is not shared | ||||||
|             if [ -z $CIRCLE_PR_USERNAME ]; then |             if [ -z $CIRCLE_PR_USERNAME ]; then | ||||||
|               BUILDSYSTEM_TOOLCHAIN+=("make arm-iar") |               BUILDSYSTEM_TOOLCHAIN+=("cmake arm-iar") | ||||||
|             fi |             fi | ||||||
|  |  | ||||||
|             RESOURCE_LARGE='["nrf", "imxrt", "stm32f4", "stm32h7"]' |             RESOURCE_LARGE='["nrf", "imxrt", "stm32f4", "stm32h7"]' | ||||||
|   | |||||||
							
								
								
									
										36
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										36
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -111,10 +111,11 @@ jobs: | |||||||
|  |  | ||||||
|   # --------------------------------------- |   # --------------------------------------- | ||||||
|   # Build IAR |   # Build IAR | ||||||
|   # Since IAR Token secret is not passed to forked PR, only build on PR from the same repo |   # Since IAR Token secret is not passed to forked PR, only build non-forked PR with make. | ||||||
|  |   # cmake is built by circle-ci. Due to IAR limit capacity, only build oe per family | ||||||
|   # --------------------------------------- |   # --------------------------------------- | ||||||
|   arm-iar: |   arm-iar: | ||||||
|     if: github.repository_owner == 'hathach' && github.event_name == 'push' |     if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false | ||||||
|     needs: set-matrix |     needs: set-matrix | ||||||
|     uses: ./.github/workflows/build_util.yml |     uses: ./.github/workflows/build_util.yml | ||||||
|     secrets: inherit |     secrets: inherit | ||||||
| @@ -122,39 +123,12 @@ jobs: | |||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         build-system: |         build-system: | ||||||
|           - 'cmake' |           - 'make' | ||||||
|     with: |     with: | ||||||
|       build-system: ${{ matrix.build-system }} |       build-system: ${{ matrix.build-system }} | ||||||
|       toolchain: 'arm-iar' |       toolchain: 'arm-iar' | ||||||
|       build-args: ${{ toJSON(fromJSON(needs.set-matrix.outputs.json)['arm-iar']) }} |       build-args: ${{ toJSON(fromJSON(needs.set-matrix.outputs.json)['arm-iar']) }} | ||||||
|       one-per-family: ${{ github.event_name == 'push' }} |       one-per-family: true | ||||||
|  |  | ||||||
| #  arm-iar: |  | ||||||
| #    if: github.repository_owner == 'hathach' && github.event_name == 'push' |  | ||||||
| #    needs: set-matrix |  | ||||||
| #    runs-on: [self-hosted, Linux, X64, hifiphile] |  | ||||||
| #    env: |  | ||||||
| #      BUILD_ARGS: ${{ join(fromJSON(needs.set-matrix.outputs.json)['arm-iar'], ' ') }} |  | ||||||
| #      IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }} |  | ||||||
| #    steps: |  | ||||||
| #      - name: Clean workspace |  | ||||||
| #        run: | |  | ||||||
| #          echo "Cleaning up previous run" |  | ||||||
| #          rm -rf "${{ github.workspace }}" |  | ||||||
| #          mkdir -p "${{ github.workspace }}" |  | ||||||
| # |  | ||||||
| #      - name: Toolchain version |  | ||||||
| #        run: | |  | ||||||
| #          iccarm --version |  | ||||||
| # |  | ||||||
| #      - name: Checkout TinyUSB |  | ||||||
| #        uses: actions/checkout@v4 |  | ||||||
| # |  | ||||||
| #      - name: Get Dependencies |  | ||||||
| #        run: python3 tools/get_deps.py $BUILD_ARGS |  | ||||||
| # |  | ||||||
| #      - name: Build |  | ||||||
| #        run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS |  | ||||||
|  |  | ||||||
|   # --------------------------------------- |   # --------------------------------------- | ||||||
|   # Zephyr |   # Zephyr | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								.github/workflows/hil_test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/hil_test.yml
									
									
									
									
										vendored
									
									
								
							| @@ -90,7 +90,7 @@ jobs: | |||||||
|   # --------------------------------------- |   # --------------------------------------- | ||||||
|   # Hardware in the loop (HIL) |   # Hardware in the loop (HIL) | ||||||
|   # self-hosted by HFP, build with IAR toolchain, for attached hardware checkout test/hil/hfp.json |   # self-hosted by HFP, build with IAR toolchain, for attached hardware checkout test/hil/hfp.json | ||||||
|   # Since IAR Token secret is not passed to forked PR, only build on PR from the same repo |   # Since IAR Token secret is not passed to forked PR, only build non-forked PR | ||||||
|   # --------------------------------------- |   # --------------------------------------- | ||||||
|   hil-hfp: |   hil-hfp: | ||||||
|     if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false |     if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach