Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
103 lines
2.8 KiB
YAML
103 lines
2.8 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- { os: android, arch: arm64 }
|
|
- { os: darwin, arch: amd64 }
|
|
- { os: darwin, arch: arm64 }
|
|
- { os: dragonfly, arch: amd64 }
|
|
- { os: freebsd, arch: "386" }
|
|
- { os: freebsd, arch: amd64 }
|
|
- { os: freebsd, arch: arm }
|
|
- { os: illumos, arch: amd64 }
|
|
- { os: linux, arch: "386" }
|
|
- { os: linux, arch: amd64 }
|
|
- { os: linux, arch: arm }
|
|
- { os: linux, arch: arm64 }
|
|
- { os: linux, arch: ppc64 }
|
|
- { os: linux, arch: ppc64le }
|
|
- { os: linux, arch: mips }
|
|
- { os: linux, arch: mipsle }
|
|
- { os: linux, arch: mips64 }
|
|
- { os: linux, arch: mips64le }
|
|
- { os: linux, arch: s390x }
|
|
- { os: netbsd, arch: "386" }
|
|
- { os: netbsd, arch: amd64 }
|
|
- { os: netbsd, arch: arm }
|
|
- { os: openbsd, arch: "386" }
|
|
- { os: openbsd, arch: amd64 }
|
|
- { os: openbsd, arch: arm }
|
|
- { os: openbsd, arch: arm64 }
|
|
- { os: solaris, arch: amd64 }
|
|
- { os: windows, arch: "386" }
|
|
- { os: windows, arch: amd64 }
|
|
# Unsupported
|
|
# - { os: aix, arch: ppc64 }
|
|
# - { os: android, arch: "386" }
|
|
# - { os: android, arch: amd64 }
|
|
# - { os: android, arch: arm }
|
|
# - { os: js, arch: wasm }
|
|
# - { os: plan9, arch: "386" }
|
|
# - { os: plan9, arch: amd64 }
|
|
# - { os: plan9, arch: arm }
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Build
|
|
run: gen/build.sh
|
|
env:
|
|
GOOS: ${{ matrix.os }}
|
|
GOARCH: ${{ matrix.arch }}
|
|
|
|
- name: Package
|
|
run: gen/package.sh
|
|
env:
|
|
GOOS: ${{ matrix.os }}
|
|
GOARCH: ${{ matrix.arch }}
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: lf-${{ matrix.os }}-${{ matrix.arch }}
|
|
path: dist/*
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v7
|
|
with:
|
|
path: dist
|
|
merge-multiple: true
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: dist/*
|
|
|
|
winget:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- uses: vedantmgoyal2009/winget-releaser@v2
|
|
with:
|
|
identifier: gokcehan.lf
|
|
version: ${{ github.ref_name }}
|
|
installers-regex: '-windows-\w+\.zip$'
|
|
token: ${{ secrets.WINGET_TOKEN }}
|