Skip to content

feat: add linux arm64 build #82

feat: add linux arm64 build

feat: add linux arm64 build #82

Workflow file for this run

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/*