-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (41 loc) · 1.13 KB
/
build.yml
File metadata and controls
42 lines (41 loc) · 1.13 KB
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
name: Build and package
on:
push:
branches:
- main
- feat/support-linux-arm64
paths-ignore:
- "**.md"
- "**.yaml"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: paulhatch/semantic-version@v5.0.2
id: version
with:
enable_prerelease_mode: true
major_pattern: "BREAKING"
minor_pattern: "feat:"
- run: mkdir -p .build
- run: |
export VERSION="${{ steps.version.outputs.version }}"
go generate
- uses: crazy-max/ghaction-xgo@v2
with:
dest: .build
go_version: 1.25.0
prefix: keydex
targets: windows/386,windows/amd64,linux/386,linux/arm64,linux/amd64,darwin/arm64,darwin/amd64
v: true
x: true
- uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
fail_on_unmatched_files: true
prerelease: ${{ github.ref != 'refs/heads/main' }}
files: .build/*