@@ -19,64 +19,53 @@ jobs:
1919 go-version : ' 1.22.x'
2020 cache-dependency-path : core/scripts/auth/go.sum
2121
22- - name : Generate beta version string
23- id : get_version
24- run : echo "version=beta-$(date +'%Y%m%d')-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
25-
2622 - name : Initialize Go module
2723 working-directory : ./core/scripts/auth
2824 run : |
2925 go mod init hysteria_auth
3026 go mod tidy
3127
32- - name : Build and Package for linux-amd64
33- id : package_amd64
34- run : |
35- (cd core/scripts/auth && GOOS=linux GOARCH=amd64 go build -o user_auth .)
36- zip_name="Blitz-${{ steps.get_version.outputs.version }}-amd64.zip"
37- zip -r "$zip_name" . \
38- -x ".git/*" \
39- ".github/*" \
40- "*.zip" \
41- ".gitignore" \
42- "CONTRIBUTING.md" \
43- "LICENSE" \
44- "README*.md" \
45- "SECURITY.md" \
46- "changelog" \
47- "core/scripts/auth/go.*" \
48- "core/scripts/auth/user_auth.go"
49- rm core/scripts/auth/user_auth
50- echo "zip_name=$zip_name" >> $GITHUB_OUTPUT
51-
52- - name : Build and Package for linux-arm64
53- id : package_arm64
54- run : |
55- (cd core/scripts/auth && GOOS=linux GOARCH=arm64 go build -o user_auth .)
56- zip_name="Blitz-${{ steps.get_version.outputs.version }}-arm64.zip"
57- zip -r "$zip_name" . \
58- -x ".git/*" \
59- ".github/*" \
60- "*.zip" \
61- ".gitignore" \
62- "CONTRIBUTING.md" \
63- "LICENSE" \
64- "README*.md" \
65- "SECURITY.md" \
66- "changelog" \
67- "core/scripts/auth/go.*" \
68- "core/scripts/auth/user_auth.go"
69- rm core/scripts/auth/user_auth
70- echo "zip_name=$zip_name" >> $GITHUB_OUTPUT
28+ - name : Build for linux-amd64
29+ run : (cd core/scripts/auth && GOOS=linux GOARCH=amd64 go build -o user_auth .)
7130
7231 - name : Upload amd64 Beta Artifact
7332 uses : actions/upload-artifact@v4
7433 with :
75- name : Blitz-Beta-amd64
76- path : ${{ steps.package_amd64.outputs.zip_name }}
34+ name : Blitz-amd64
35+ path : |
36+ .
37+ !.git/**
38+ !.github/**
39+ !*.zip
40+ !.gitignore
41+ !CONTRIBUTING.md
42+ !LICENSE
43+ !README*.md
44+ !SECURITY.md
45+ !changelog
46+ !core/scripts/auth/go.*
47+ !core/scripts/auth/user_auth.go
48+
49+ - name : Clean amd64 binary
50+ run : rm core/scripts/auth/user_auth
51+
52+ - name : Build for linux-arm64
53+ run : (cd core/scripts/auth && GOOS=linux GOARCH=arm64 go build -o user_auth .)
7754
7855 - name : Upload arm64 Beta Artifact
7956 uses : actions/upload-artifact@v4
8057 with :
81- name : Blitz-Beta-arm64
82- path : ${{ steps.package_arm64.outputs.zip_name }}
58+ name : Blitz-arm64
59+ path : |
60+ .
61+ !.git/**
62+ !.github/**
63+ !*.zip
64+ !.gitignore
65+ !CONTRIBUTING.md
66+ !LICENSE
67+ !README*.md
68+ !SECURITY.md
69+ !changelog
70+ !core/scripts/auth/go.*
71+ !core/scripts/auth/user_auth.go
0 commit comments