Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
description: 'Go version to build ("1.21")'
required: true
prerelease:
description: 'Is this a pre-release?'
description: "Is this a pre-release?"
required: true
default: 'false'
default: "false"

jobs:
build:
Expand All @@ -22,10 +22,10 @@ jobs:
- builder: macos-latest
goos: darwin
goarch: amd64
- builder: ubuntu-20.04
- builder: ubuntu-24.04
goos: linux
goarch: amd64
- builder: ubuntu-20.04
- builder: ubuntu-24.04
goos: linux
goarch: arm64
- builder: windows-latest
Expand All @@ -39,15 +39,15 @@ jobs:
- name: Check out repo
uses: actions/checkout@v2
with:
fetch-depth: 0 # We need the full history for the Go submodule
fetch-depth: 0 # We need the full history for the Go submodule
submodules: true # Checkout the Go submodule

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: "1.25"

- name: 'Create patched runtime'
- name: "Create patched runtime"
run: bash ./apply_patch.bash "${{ github.event.inputs.version }}"

- name: Build
Expand All @@ -56,32 +56,32 @@ jobs:
GO111MODULE: "on"

# 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`.
- name: 'Read the version of Go we built'
- name: "Read the version of Go we built"
id: encore_go_version
run: echo "::set-output name=version::$(go run . --read-built-version)"

- name: 'Tar artifacts'
- name: "Tar artifacts"
run: tar -czvf ${{ steps.encore_go_version.outputs.version }}-${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz -C dist/${{ matrix.goos }}_${{ matrix.goarch }} .

- name: 'Upload build artifact'
uses: actions/upload-artifact@v2
- name: "Upload build artifact"
uses: actions/upload-artifact@v5
with:
name: ${{ steps.encore_go_version.outputs.version }}-${{ matrix.goos }}_${{ matrix.goarch }}
path: ${{ steps.encore_go_version.outputs.version }}-${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
needs: build
steps:
- name: 'Download artifacts from build steps'
uses: actions/download-artifact@v2
- name: "Download artifacts from build steps"
uses: actions/download-artifact@v5

- name: 'Convert windows artifact to zip'
- name: "Convert windows artifact to zip"
run: |
cd ${{needs.build.outputs.built_version}}-windows_amd64
tar -xzf ${{needs.build.outputs.built_version}}-windows_amd64.tar.gz
zip -r ${{needs.build.outputs.built_version}}-windows_amd64.zip encore-go

- name: 'Move, rename and create checksums for the artifacts'
- name: "Move, rename and create checksums for the artifacts"
run: |
mkdir output
mv ${{needs.build.outputs.built_version}}-linux_amd64/${{needs.build.outputs.built_version}}-linux_amd64.tar.gz output/linux_x86-64.tar.gz
Expand All @@ -97,7 +97,7 @@ jobs:
cd ..
cat checksums.txt

- name: 'Publish release'
- name: "Publish release"
uses: DomBlack/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading