mirror of
				https://github.com/diamante0018/master-tool.git
				synced 2025-10-31 00:16:58 +00:00 
			
		
		
		
	feature(github): fix arm64 build
This commit is contained in:
		
							
								
								
									
										44
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										44
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -30,7 +30,7 @@ jobs: | ||||
|             platform: x64 | ||||
|     steps: | ||||
|       - name: Check out files | ||||
|         uses: actions/checkout@v3.5.2 | ||||
|         uses: actions/checkout@v3.5.3 | ||||
|         with: | ||||
|           submodules: true | ||||
|           fetch-depth: 0 | ||||
| @@ -39,8 +39,13 @@ jobs: | ||||
|       - name: Add msbuild to PATH | ||||
|         uses: microsoft/setup-msbuild@v1.3.1 | ||||
|  | ||||
|       - name: Install Premake5 | ||||
|         uses: abel0b/setup-premake@v2.2 | ||||
|         with: | ||||
|           version: "5.0.0-beta2" | ||||
|  | ||||
|       - name: Generate project files | ||||
|         run: cmd /C call generate.bat | ||||
|         run: premake5 vs2022 | ||||
|  | ||||
|       - name: Set up problem matching | ||||
|         uses: ammaraskar/msvc-problem-matcher@master | ||||
| @@ -67,6 +72,7 @@ jobs: | ||||
|           - Release | ||||
|         arch: | ||||
|           - x64 | ||||
|           - arm64 | ||||
|         include: | ||||
|           - configuration: Debug | ||||
|             config: debug | ||||
| @@ -74,21 +80,42 @@ jobs: | ||||
|             config: release | ||||
|     steps: | ||||
|       - name: Check out files | ||||
|         uses: actions/checkout@v3.5.2 | ||||
|         uses: actions/checkout@v3.5.3 | ||||
|         with: | ||||
|           submodules: true | ||||
|           fetch-depth: 0 | ||||
|           lfs: false | ||||
|  | ||||
|       - name: Install dependencies (arm64) | ||||
|         if: matrix.arch == 'arm64' | ||||
|         run: | | ||||
|           sudo apt-get update | ||||
|           sudo apt-get -y install crossbuild-essential-arm64 | ||||
|  | ||||
|       - name: Install Mold | ||||
|         uses: rui314/setup-mold@staging | ||||
|  | ||||
|       - name: Install Premake5 | ||||
|         uses: abel0b/setup-premake@v2.2 | ||||
|         with: | ||||
|           version: "5.0.0-beta2" | ||||
|  | ||||
|       - name: Generate project files | ||||
|         run: ./generate.sh | ||||
|         run: premake5 gmake2 | ||||
|  | ||||
|       - name: Set up problem matching | ||||
|         uses: ammaraskar/gcc-problem-matcher@master | ||||
|  | ||||
|       - name: Set up CC environment variables | ||||
|         if: matrix.arch == 'arm64' | ||||
|         run: | | ||||
|           echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV | ||||
|  | ||||
|       - name: Set up CXX environment variables | ||||
|         if: matrix.arch == 'arm64' | ||||
|         run: | | ||||
|           echo "CXX=aarch64-linux-gnu-g++" >> $GITHUB_ENV | ||||
|  | ||||
|       - name: Build ${{matrix.configuration}} ${{matrix.arch}} binaries | ||||
|         run: | | ||||
|           pushd build | ||||
| @@ -124,14 +151,19 @@ jobs: | ||||
|             platform: arm64 | ||||
|     steps: | ||||
|       - name: Check out files | ||||
|         uses: actions/checkout@v3.5.2 | ||||
|         uses: actions/checkout@v3.5.3 | ||||
|         with: | ||||
|           submodules: true | ||||
|           fetch-depth: 0 | ||||
|           lfs: false | ||||
|  | ||||
|       - name: Install Premake5 | ||||
|         uses: abel0b/setup-premake@v2.2 | ||||
|         with: | ||||
|           version: "5.0.0-beta2" | ||||
|  | ||||
|       - name: Generate project files | ||||
|         run: ./generate.sh | ||||
|         run: premake5 gmake2 | ||||
|  | ||||
|       - name: Set up problem matching | ||||
|         uses: ammaraskar/gcc-problem-matcher@master | ||||
|   | ||||
		Reference in New Issue
	
	Block a user