Skip to content

feat: add CI/CD workflows, fix module path, add missing cmd/ entry point #1

feat: add CI/CD workflows, fix module path, add missing cmd/ entry point

feat: add CI/CD workflows, fix module path, add missing cmd/ entry point #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
name: Build & Release
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: Run tests
run: go test -v ./...
- name: Build darwin/arm64
env:
GOOS: darwin
GOARCH: arm64
CGO_ENABLED: 0
run: go build -ldflags="-s -w" -o lume-darwin-arm64 ./cmd/lume/...
- name: Build darwin/amd64
env:
GOOS: darwin
GOARCH: amd64
CGO_ENABLED: 0
run: go build -ldflags="-s -w" -o lume-darwin-amd64 ./cmd/lume/...
- name: Generate checksums
run: shasum -a 256 lume-darwin-* > checksums.txt
- name: Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
lume-darwin-arm64
lume-darwin-amd64
checksums.txt