release v1.11.1 #3989
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
env: | |
GO_VERSION: 1.22.7 | |
on: | |
push: | |
# Permission forced by repo-level setting; only elevate on job-level | |
permissions: | |
contents: read | |
# packages: read | |
jobs: | |
build-linux-binary: | |
runs-on: ubuntu-latest | |
permissions: | |
# https://github.com/marketplace/actions/goreleaser-action | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: gcc install | |
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu | |
- name: Get tag | |
uses: little-core-labs/get-git-tag@v3.0.2 | |
id: tag | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
version: 2.4.1 | |
args: build --skip=validate --config .goreleaser-for-linux.yaml | |
build-darwin-binary: | |
runs-on: macos-latest | |
permissions: | |
# https://github.com/marketplace/actions/goreleaser-action | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get tag | |
uses: little-core-labs/get-git-tag@v3.0.2 | |
id: tag | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Build | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
args: build --skip=validate --config .goreleaser-for-darwin.yaml | |
build-windows-binary: | |
runs-on: ubuntu-latest | |
permissions: | |
# https://github.com/marketplace/actions/goreleaser-action | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get tag | |
uses: little-core-labs/get-git-tag@v3.0.2 | |
id: tag | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Build | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
args: build --skip=validate --config .goreleaser-for-windows.yaml |