-
Notifications
You must be signed in to change notification settings - Fork 828
46 lines (43 loc) · 1.26 KB
/
release-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Binaries for Release
on:
release:
types: [published]
permissions:
contents: write
packages: write
jobs:
build:
name: Build release binaries
runs-on: ubuntu-latest
strategy:
matrix:
# windows isn't working on windows right now, add it to this list once
# I fix the code.
goos: [linux, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
#- goarch: arm64
# goos: windows
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Compute asdf version
id: asdf-version
shell: bash
run: echo "version=$(./scripts/asdf-version)" >> "$GITHUB_OUTPUT"
- name: Build Go binaries
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.23.4"
binary_name: "asdf"
project_path: ./cmd/asdf
release_tag: ${{ github.event.release.tag_name }}
release_name: ${{ github.event.release.tag_name }}
ldflags: -s -X main.version=${{ github.event.release.tag_name }}