@@ -9,7 +9,7 @@ permissions:
99 contents : write
1010
1111env :
12- GO_VERSION : 1.24.6
12+ GO_VERSION : 1.25.3
1313
1414jobs :
1515 build :
2222 fetch-depth : 0
2323
2424 - name : Set up Go
25- uses : actions/setup-go@v5
25+ uses : actions/setup-go@v6
2626 with :
2727 go-version : ${{ env.GO_VERSION }}
2828
@@ -35,13 +35,12 @@ jobs:
3535 FILE_VERSION=${VERSION:1}.0
3636
3737 mkdir bin
38- mkdir win
3938 go-winres simply --arch amd64 --product-version $VERSION-$GIT_COMMIT --file-version $FILE_VERSION --file-description "SFTPGo plugin eventsearch" --product-name "SFTPGo plugin eventsearch" --copyright "AGPL-3.0" --original-filename sftpgo-plugin-eventsearch-windows-x86_64.exe --icon res/icon.ico
40- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o win /sftpgo-plugin-eventsearch-windows-x86_64.exe
39+ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o bin /sftpgo-plugin-eventsearch-windows-x86_64.exe
4140 go-winres simply --arch amd64 --product-version $VERSION-$GIT_COMMIT --file-version $FILE_VERSION --file-description "SFTPGo plugin eventsearch" --product-name "SFTPGo plugin eventsearch" --copyright "AGPL-3.0" --original-filename sftpgo-plugin-eventsearch-windows-arm64.exe --icon res/icon.ico
42- CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o win /sftpgo-plugin-eventsearch-windows-arm64.exe
41+ CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o bin /sftpgo-plugin-eventsearch-windows-arm64.exe
4342 go-winres simply --arch amd64 --product-version $VERSION-$GIT_COMMIT --file-version $FILE_VERSION --file-description "SFTPGo plugin eventsearch" --product-name "SFTPGo plugin eventsearch" --copyright "AGPL-3.0" --original-filename sftpgo-plugin-eventsearch-windows-x86.exe --icon res/icon.ico
44- CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o win /sftpgo-plugin-eventsearch-windows-x86.exe
43+ CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o bin /sftpgo-plugin-eventsearch-windows-x86.exe
4544
4645 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o bin/sftpgo-plugin-eventsearch-linux-amd64
4746 CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o bin/sftpgo-plugin-eventsearch-linux-arm64
5150 CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags "-s -w -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.commitHash=`git describe --always --dirty` -X github.com/sftpgo/sftpgo-plugin-eventsearch/cmd.buildDate=`date -u +%FT%TZ`" -o bin/sftpgo-plugin-eventsearch-darwin-arm64
5251 shell : bash
5352
54- - name : Upload Windows artifact
55- uses : actions/upload-artifact@v4
56- with :
57- name : win
58- path : win
59- retention-days : 1
60-
6153 - name : Prepare vendored sources
6254 run : |
6355 VERSION=${GITHUB_REF/refs\/tags\//}
7466 gh release view "${VERSION}"
7567 env :
7668 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
77-
78- release-windows-binaries :
79- name : Release Windows binaries
80- environment : signing
81- needs : [build]
82- runs-on : windows-latest
83-
84- steps :
85- - uses : actions/checkout@v5
86- with :
87- fetch-depth : 0
88-
89- - name : Download artifact
90- uses : actions/download-artifact@v5
91- with :
92- name : win
93-
94- - name : Azure login
95- uses : azure/login@v2
96- with :
97- client-id : ${{ secrets.AZURE_CLIENT_ID }}
98- tenant-id : ${{ secrets.AZURE_TENANT_ID }}
99- subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
100-
101- - name : Sign
102- 103- with :
104- endpoint : https://eus.codesigning.azure.net/
105- trusted-signing-account-name : nicola
106- certificate-profile-name : SFTPGo
107- files : |
108- ${{ github.workspace }}\sftpgo-plugin-eventsearch-windows-x86_64.exe
109- ${{ github.workspace }}\sftpgo-plugin-eventsearch-windows-arm64.exe
110- ${{ github.workspace }}\sftpgo-plugin-eventsearch-windows-x86.exe
111- file-digest : SHA256
112- timestamp-rfc3161 : http://timestamp.acs.microsoft.com
113- timestamp-digest : SHA256
114- exclude-environment-credential : true
115- exclude-workload-identity-credential : true
116- exclude-managed-identity-credential : true
117- exclude-shared-token-cache-credential : true
118- exclude-visual-studio-credential : true
119- exclude-visual-studio-code-credential : true
120- exclude-azure-cli-credential : false
121- exclude-azure-powershell-credential : true
122- exclude-azure-developer-cli-credential : true
123- exclude-interactive-browser-credential : true
124-
125- - name : Upload to release
126- run : |
127- VERSION=${GITHUB_REF/refs\/tags\//}
128- gh release upload "${VERSION}" sftpgo-plugin-eventsearch-windows-x86_64.exe
129- gh release upload "${VERSION}" sftpgo-plugin-eventsearch-windows-arm64.exe
130- gh release upload "${VERSION}" sftpgo-plugin-eventsearch-windows-x86.exe
131- gh release view "${VERSION}"
132- shell : bash
133- env :
134- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
0 commit comments