mirror of
				https://github.com/bjdgyc/anylink.git
				synced 2025-11-04 19:16:22 +08:00 
			
		
		
		
	删除armv7
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@@ -70,7 +70,7 @@ jobs:
 | 
				
			|||||||
          cache-to: type=gha,mode=max,scope=anylink
 | 
					          cache-to: type=gha,mode=max,scope=anylink
 | 
				
			||||||
          context: .
 | 
					          context: .
 | 
				
			||||||
          file: ./docker/Dockerfile
 | 
					          file: ./docker/Dockerfile
 | 
				
			||||||
          platforms: linux/amd64,linux/arm64,linux/arm/v7
 | 
					          platforms: linux/amd64,linux/arm64
 | 
				
			||||||
          #platforms: linux/amd64
 | 
					          #platforms: linux/amd64
 | 
				
			||||||
          build-args: |
 | 
					          build-args: |
 | 
				
			||||||
            appVer=${{ env.APP_VER }}
 | 
					            appVer=${{ env.APP_VER }}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ if [[ $CN == "yes" ]]; then
 | 
				
			|||||||
  export GOPROXY=https://goproxy.cn
 | 
					  export GOPROXY=https://goproxy.cn
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
apk add tzdata gcc musl-dev upx
 | 
					apk add build-base tzdata gcc musl-dev upx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uname -a
 | 
					uname -a
 | 
				
			||||||
env
 | 
					env
 | 
				
			||||||
@@ -24,7 +24,7 @@ extldflags="-static"
 | 
				
			|||||||
ldflags="-s -w -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$(date -Iseconds) \
 | 
					ldflags="-s -w -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$(date -Iseconds) \
 | 
				
			||||||
  -extldflags \"$extldflags\" "
 | 
					  -extldflags \"$extldflags\" "
 | 
				
			||||||
 | 
					
 | 
				
			||||||
go build -o anylink -trimpath -ldflags "$ldflags"
 | 
					CGO_ENABLED=1 go build -o anylink -trimpath -ldflags "$ldflags"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ls -lh /server/
 | 
					ls -lh /server/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,6 @@ echo "copy二进制文件"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
archive "linux/amd64"
 | 
					archive "linux/amd64"
 | 
				
			||||||
archive "linux/arm64"
 | 
					archive "linux/arm64"
 | 
				
			||||||
archive "linux/arm/v7"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ls -lh artifact-dist
 | 
					ls -lh artifact-dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								server/build_test.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								server/build_test.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# docker run -it --rm -v $PWD:/app -v /go:/go -w /app --platform=linux/arm64 golang:alpine3.19 sh build_test.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -x
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
 | 
				
			||||||
 | 
					export GOPROXY=https://goproxy.cn
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					apk add build-base tzdata gcc musl-dev upx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go build -o anylink
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#go build -o anylink -ldflags "-extldflags '-static'"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go env
 | 
				
			||||||
 | 
					uname -a
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					./anylink -v
 | 
				
			||||||
		Reference in New Issue
	
	Block a user