77 description : ' Go version to build ("1.21")'
88 required : true
99 prerelease :
10- description : ' Is this a pre-release?'
10+ description : " Is this a pre-release?"
1111 required : true
12- default : ' false'
12+ default : " false"
1313
1414jobs :
1515 build :
@@ -22,10 +22,10 @@ jobs:
2222 - builder : macos-latest
2323 goos : darwin
2424 goarch : amd64
25- - builder : ubuntu-20 .04
25+ - builder : ubuntu-24 .04
2626 goos : linux
2727 goarch : amd64
28- - builder : ubuntu-20 .04
28+ - builder : ubuntu-24 .04
2929 goos : linux
3030 goarch : arm64
3131 - builder : windows-latest
@@ -39,15 +39,15 @@ jobs:
3939 - name : Check out repo
4040 uses : actions/checkout@v2
4141 with :
42- fetch-depth : 0 # We need the full history for the Go submodule
42+ fetch-depth : 0 # We need the full history for the Go submodule
4343 submodules : true # Checkout the Go submodule
4444
4545 - name : Set up Go
4646 uses : actions/setup-go@v2
4747 with :
48- go-version : ' 1.20 '
48+ go-version : " 1.25 "
4949
50- - name : ' Create patched runtime'
50+ - name : " Create patched runtime"
5151 run : bash ./apply_patch.bash "${{ github.event.inputs.version }}"
5252
5353 - name : Build
@@ -56,32 +56,32 @@ jobs:
5656 GO111MODULE : " on"
5757
5858 # This step gets the exact version of Go we're releasing (including minor), so if we give the input as `1.17` this might return `encore-go1.17.5`.
59- - name : ' Read the version of Go we built'
59+ - name : " Read the version of Go we built"
6060 id : encore_go_version
6161 run : echo "::set-output name=version::$(go run . --read-built-version)"
6262
63- - name : ' Tar artifacts'
63+ - name : " Tar artifacts"
6464 run : tar -czvf ${{ steps.encore_go_version.outputs.version }}-${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz -C dist/${{ matrix.goos }}_${{ matrix.goarch }} .
6565
66- - name : ' Upload build artifact'
67- uses : actions/upload-artifact@v2
66+ - name : " Upload build artifact"
67+ uses : actions/upload-artifact@v5
6868 with :
6969 name : ${{ steps.encore_go_version.outputs.version }}-${{ matrix.goos }}_${{ matrix.goarch }}
7070 path : ${{ steps.encore_go_version.outputs.version }}-${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz
7171 release :
72- runs-on : ubuntu-20 .04
72+ runs-on : ubuntu-24 .04
7373 needs : build
7474 steps :
75- - name : ' Download artifacts from build steps'
76- uses : actions/download-artifact@v2
75+ - name : " Download artifacts from build steps"
76+ uses : actions/download-artifact@v5
7777
78- - name : ' Convert windows artifact to zip'
78+ - name : " Convert windows artifact to zip"
7979 run : |
8080 cd ${{needs.build.outputs.built_version}}-windows_amd64
8181 tar -xzf ${{needs.build.outputs.built_version}}-windows_amd64.tar.gz
8282 zip -r ${{needs.build.outputs.built_version}}-windows_amd64.zip encore-go
8383
84- - name : ' Move, rename and create checksums for the artifacts'
84+ - name : " Move, rename and create checksums for the artifacts"
8585 run : |
8686 mkdir output
8787 mv ${{needs.build.outputs.built_version}}-linux_amd64/${{needs.build.outputs.built_version}}-linux_amd64.tar.gz output/linux_x86-64.tar.gz
9797 cd ..
9898 cat checksums.txt
9999
100- - name : ' Publish release'
100+ - name : " Publish release"
101101 uses : DomBlack/github-release@2.0
102102 with :
103103 token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments