Skip to content

Upgrade to go 1.21

Upgrade to go 1.21 #39

Workflow file for this run

name: build-release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
strategy:
matrix:
go_os: [windows, linux, darwin]
go_arch: [amd64, arm64]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Build
run: GOOS=${{ matrix.go_os }} GOARCH=${{ matrix.go_arch }} CGO_ENABLED=0 go build -ldflags "-w" -trimpath -o ./aws-in-a-box-${{ matrix.go_os }}-${{ matrix.go_arch }}
- name: Release artifact
uses: softprops/action-gh-release@v1
with:
files: ./aws-in-a-box-${{ matrix.go_os }}-${{ matrix.go_arch }}