mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-03 22:22:08 +00:00 
			
		
		
		
	[host] windows: test native build on GitHub Actions
This commit is contained in:
		
							
								
								
									
										28
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -55,21 +55,21 @@ jobs:
 | 
			
		||||
        cd host/build
 | 
			
		||||
        make -j$(nproc)
 | 
			
		||||
 | 
			
		||||
  host-windows:
 | 
			
		||||
  host-windows-cross:
 | 
			
		||||
    runs-on: ubuntu-20.04
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
    - name: Install Windows host dependencies
 | 
			
		||||
    - name: Install Windows host cross-compile dependencies
 | 
			
		||||
      run: |
 | 
			
		||||
        sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 nsis
 | 
			
		||||
    - name: Configure Windows host
 | 
			
		||||
    - name: Configure Windows host for cross-compile
 | 
			
		||||
      run: |
 | 
			
		||||
        mkdir host/build
 | 
			
		||||
        cd host/build
 | 
			
		||||
        cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-mingw64.cmake ..
 | 
			
		||||
    - name: Build Windows host
 | 
			
		||||
    - name: Cross-compile Windows host
 | 
			
		||||
      run: |
 | 
			
		||||
        cd host/build
 | 
			
		||||
        make -j$(nproc)
 | 
			
		||||
@@ -78,6 +78,26 @@ jobs:
 | 
			
		||||
        cd host/build
 | 
			
		||||
        makensis platform/Windows/installer.nsi
 | 
			
		||||
 | 
			
		||||
  host-windows-native:
 | 
			
		||||
    runs-on: windows-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
    - name: Configure Windows host for native MinGW-w64
 | 
			
		||||
      run: |
 | 
			
		||||
        mkdir host\build
 | 
			
		||||
        cd host\build
 | 
			
		||||
        cmake -G "MinGW Makefiles" ..
 | 
			
		||||
    - name: Build Windows host on native MinGW-w64
 | 
			
		||||
      run: |
 | 
			
		||||
        cd host\build
 | 
			
		||||
        mingw32-make "-j$([Environment]::ProcessorCount)"
 | 
			
		||||
    - name: Build Windows host installer
 | 
			
		||||
      run: |
 | 
			
		||||
        cd host\build
 | 
			
		||||
        makensis platform\Windows\installer.nsi
 | 
			
		||||
 | 
			
		||||
  obs:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    strategy:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user