mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	chore(CI): using container
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									f1be0b3f99
								
							
						
					
					
						commit
						4a05db1fe7
					
				
							
								
								
									
										23
									
								
								.github/workflows/go.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/go.yml
									
									
									
									
										vendored
									
									
								
							| @ -37,28 +37,11 @@ jobs: | |||||||
|     env: |     env: | ||||||
|       GO111MODULE: on |       GO111MODULE: on | ||||||
|       GOPROXY: https://proxy.golang.org |       GOPROXY: https://proxy.golang.org | ||||||
|  |     container: | ||||||
|  |       image: techknowlogick/xgo:go-1.18.x | ||||||
|     steps: |     steps: | ||||||
|       - name: Set up Go ${{ matrix.go }} |  | ||||||
|         uses: actions/setup-go@v3 |  | ||||||
|         with: |  | ||||||
|           go-version: ${{ matrix.go }} |  | ||||||
| 
 |  | ||||||
|       - name: Checkout Code |  | ||||||
|         uses: actions/checkout@v3 |  | ||||||
|         with: |  | ||||||
|           ref: ${{ github.ref }} |  | ||||||
| 
 |  | ||||||
|       - uses: actions/cache@v3 |  | ||||||
|         with: |  | ||||||
|           path: | |  | ||||||
|             ${{ matrix.go-build }} |  | ||||||
|             ~/go/pkg/mod |  | ||||||
|           key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |  | ||||||
|           restore-keys: | |  | ||||||
|             ${{ runner.os }}-go- |  | ||||||
|       - name: initial docker |  | ||||||
|         uses: docker-practice/actions-setup-docker@master |  | ||||||
|       - name: build all binaries |       - name: build all binaries | ||||||
|         run: | |         run: | | ||||||
|           set -x |           set -x | ||||||
|  |           export PATH=$PATH:$GOPATH/bin | ||||||
|           make release |           make release | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -133,7 +133,7 @@ deps-backend: | |||||||
| 	$(GO) install $(XGO_PACKAGE) | 	$(GO) install $(XGO_PACKAGE) | ||||||
| 
 | 
 | ||||||
| .PHONY: release | .PHONY: release | ||||||
| release: release-linux release-darwin release-copy release-compress release-check | release: release-windows release-linux release-darwin release-copy release-compress release-check | ||||||
| 
 | 
 | ||||||
| $(DIST_DIRS): | $(DIST_DIRS): | ||||||
| 	mkdir -p $(DIST_DIRS) | 	mkdir -p $(DIST_DIRS) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi.Wu
						Bo-Yi.Wu