mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Build RPi jobs using arm-based runners
This commit is contained in:
		
							
								
								
									
										3
									
								
								.github/scripts/build.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/scripts/build.sh
									
									
									
									
										vendored
									
									
								
							| @@ -3,6 +3,7 @@ | ||||
| # set environment variables if not exists | ||||
| [ -z "${BUILD_TYPE}" ] && BUILD_TYPE="Debug" | ||||
| [ -z "${TARGET_ARCH}" ] && TARGET_ARCH="linux/amd64" | ||||
| [ -z "${ENTRYPOINT}" ] && ENTRYPOINT="" | ||||
| [ -z "${PLATFORM}" ] && PLATFORM="x11" | ||||
|  | ||||
| # Determine cmake build type; tag builds are Release, else Debug (-dev appends to platform) | ||||
| @@ -39,7 +40,7 @@ elif [[ "$RUNNER_OS" == 'Linux' ]]; then | ||||
| 	mkdir ${GITHUB_WORKSPACE}/deploy | ||||
|  | ||||
| 	# run docker | ||||
| 	docker run --rm --platform=${TARGET_ARCH} \ | ||||
| 	docker run --rm --platform=${TARGET_ARCH} ${ENTRYPOINT} \ | ||||
| 		-v "${GITHUB_WORKSPACE}/deploy:/deploy" \ | ||||
| 		-v "${GITHUB_WORKSPACE}:/source:rw" \ | ||||
| 		$REGISTRY_URL:$DOCKER_TAG \ | ||||
|   | ||||
							
								
								
									
										3
									
								
								.github/workflows/qt5_6.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/qt5_6.yml
									
									
									
									
										vendored
									
									
								
							| @@ -36,7 +36,7 @@ jobs: | ||||
|  | ||||
|   Linux: | ||||
|     name: 🐧 ${{ matrix.os.description }} | ||||
|     runs-on: ubuntu-22.04 | ||||
|     runs-on: ${{ matrix.os.architecture[0] == 'amd64' && 'ubuntu-22.04' || 'ubuntu-22.04-arm' }} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
| @@ -80,6 +80,7 @@ jobs: | ||||
|           DOCKER_IMAGE: ${{ matrix.os.distribution }} | ||||
|           DOCKER_TAG: ${{ matrix.os.codename }}${{ inputs.qt_version == '6' && '-qt6' || '' }} | ||||
|           PLATFORM: ${{ matrix.os.platform }} | ||||
|           ENTRYPOINT: ${{ matrix.os.architecture[0] == 'amd64' && '--entrypoint /usr/bin/env' || '' }} | ||||
|           TARGET_ARCH: ${{ matrix.os.architecture[1] }} | ||||
|  | ||||
|       - name: 📦 Upload | ||||
|   | ||||
		Reference in New Issue
	
	Block a user