Skip to content

Commit

Permalink
.github: use go 1.20.6 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
eandre committed Aug 11, 2023
1 parent b9d02b1 commit 005c5e9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,30 @@ jobs:
submodules: true # Checkout the Go submodule

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

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

- name: Set GOROOT_BOOTSTRAP
id: set_bootstrap
if: matrix.goos == 'windows'
run: |
echo "GOROOT_BOOTSTRAP=$(go env GOROOT)" >> "$env:GITHUB_ENV"
echo "GOROOT_BOOTSTRAP=$(go env GOROOT)" >> "$env:GITHUB_OUTPUT"
- name: Build
run: go run . -dst=dist -goos=${{ matrix.goos }} -goarch=${{ matrix.goarch }}
run: |
echo "goroot: $(go env GOROOT)"
echo "bootstrap=$GOROOT_BOOTSTRAP"
echo "output: ${{ steps.set_bootstrap.outputs.GOROOT_BOOTSTRAP }}"
echo "find bin: $(ls $GOROOT_BOOTSTRAP/bin)"
go run . -dst=dist -goos=${{ matrix.goos }} -goarch=${{ matrix.goarch }}
env:
GO111MODULE: "on"
GOROOT_BOOTSTRAP: ${{ steps.set_bootstrap.outputs.GOROOT_BOOTSTRAP }}

# 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'
Expand Down

0 comments on commit 005c5e9

Please sign in to comment.