mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	chore: cross-build for AIX (#5971)
This commit is contained in:
		
							parent
							
								
									4a09cf0dc0
								
							
						
					
					
						commit
						7d919af01b
					
				
							
								
								
									
										4
									
								
								.github/workflows/cross-build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/cross-build.yml
									
									
									
									
										vendored
									
									
								
							@ -16,6 +16,7 @@ jobs:
 | 
				
			|||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        goos: 
 | 
					        goos: 
 | 
				
			||||||
 | 
					          - 'aix'
 | 
				
			||||||
          - 'android'
 | 
					          - 'android'
 | 
				
			||||||
          - 'linux'
 | 
					          - 'linux'
 | 
				
			||||||
          - 'solaris'
 | 
					          - 'solaris'
 | 
				
			||||||
@ -62,11 +63,12 @@ jobs:
 | 
				
			|||||||
        env:
 | 
					        env:
 | 
				
			||||||
          CGO_ENABLED: 0
 | 
					          CGO_ENABLED: 0
 | 
				
			||||||
          GOOS: ${{ matrix.goos }}
 | 
					          GOOS: ${{ matrix.goos }}
 | 
				
			||||||
 | 
					          GOARCH: ${{ matrix.goos == 'aix' && 'ppc64' || 'amd64' }}
 | 
				
			||||||
        shell: bash
 | 
					        shell: bash
 | 
				
			||||||
        continue-on-error: true
 | 
					        continue-on-error: true
 | 
				
			||||||
        working-directory: ./cmd/caddy
 | 
					        working-directory: ./cmd/caddy
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          GOOS=$GOOS go build -trimpath -o caddy-"$GOOS"-amd64 2> /dev/null
 | 
					          GOOS=$GOOS GOARCH=$GOARCH go build -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null
 | 
				
			||||||
          if [ $? -ne 0 ]; then
 | 
					          if [ $? -ne 0 ]; then
 | 
				
			||||||
            echo "::warning ::$GOOS Build Failed"
 | 
					            echo "::warning ::$GOOS Build Failed"
 | 
				
			||||||
            exit 0
 | 
					            exit 0
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user