mirror of
				https://github.com/google/cpu_features.git
				synced 2025-11-03 22:40:17 +01:00 
			
		
		
		
	ci: Zig build on MacOs, Win
Signed-off-by: inge4pres <fgualazzi@gmail.com>
This commit is contained in:
		
							
								
								
									
										20
									
								
								.github/workflows/amd64_macos_zig.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/amd64_macos_zig.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					name: amd64 MacOS Zig
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on: [push, pull_request]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  run:
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        target:
 | 
				
			||||||
 | 
					          - x86_64-macos-none
 | 
				
			||||||
 | 
					    runs-on: macos-13  # Using x86 processors
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v5
 | 
				
			||||||
 | 
					      - uses: mlugg/setup-zig@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          version: latest
 | 
				
			||||||
 | 
					      - name: Build
 | 
				
			||||||
 | 
					        run: zig build -Dtarget=${{ matrix.target }}
 | 
				
			||||||
 | 
					      - name: Run list_cpu_features
 | 
				
			||||||
 | 
					        run: ./zig-out/bin/list_cpu_features --json
 | 
				
			||||||
							
								
								
									
										20
									
								
								.github/workflows/amd64_windows_zig.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/amd64_windows_zig.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					name: amd64 Windows Zig
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on: [push, pull_request]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  run:
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        target:
 | 
				
			||||||
 | 
					          - x86_64-windows-gnu
 | 
				
			||||||
 | 
					    runs-on: windows-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v5
 | 
				
			||||||
 | 
					      - uses: mlugg/setup-zig@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          version: latest
 | 
				
			||||||
 | 
					      - name: Build
 | 
				
			||||||
 | 
					        run: zig build -Dtarget=${{ matrix.target }}
 | 
				
			||||||
 | 
					      - name: Run list_cpu_features
 | 
				
			||||||
 | 
					        run: .\zig-out\bin\list_cpu_features.exe --json
 | 
				
			||||||
							
								
								
									
										20
									
								
								.github/workflows/arm64_macos_zig.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/arm64_macos_zig.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					name: Arm64 MacOS Zig
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on: [push, pull_request]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  run:
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        target:
 | 
				
			||||||
 | 
					          - aarch64-macos-none
 | 
				
			||||||
 | 
					    runs-on: macos-latest  # Using M1 processors
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v5
 | 
				
			||||||
 | 
					      - uses: mlugg/setup-zig@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          version: latest
 | 
				
			||||||
 | 
					      - name: Build
 | 
				
			||||||
 | 
					        run: zig build -Dtarget=${{ matrix.target }}
 | 
				
			||||||
 | 
					      - name: Run list_cpu_features
 | 
				
			||||||
 | 
					        run: ./zig-out/bin/list_cpu_features --json
 | 
				
			||||||
		Reference in New Issue
	
	Block a user