Skip to content

feat: add Homebrew support, i18n comments, optimize sorting #7

feat: add Homebrew support, i18n comments, optimize sorting

feat: add Homebrew support, i18n comments, optimize sorting #7

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Download dependencies
run: go mod download
- name: Vet
run: go vet ./...
- name: Test
run: go test -v -race ./...
build:
name: Build
runs-on: macos-latest
needs: test
strategy:
matrix:
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Build (darwin/${{ matrix.goarch }})
env:
GOOS: darwin
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: go build -ldflags="-s -w" -o lume-darwin-${{ matrix.goarch }} ./cmd/lume/...
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: lume-darwin-${{ matrix.goarch }}
path: lume-darwin-${{ matrix.goarch }}