Skip to content

v0.33

v0.33 #14

Workflow file for this run

name: Release
on:
release:
types: [created]
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.artifact }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
artifact: mind-map-linux-x64
- goos: linux
goarch: arm64
artifact: mind-map-linux-arm64
- goos: darwin
goarch: amd64
artifact: mind-map-darwin-x64
- goos: darwin
goarch: arm64
artifact: mind-map-darwin-arm64
- goos: windows
goarch: amd64
artifact: mind-map-windows-x64.exe
- goos: windows
goarch: arm64
artifact: mind-map-windows-arm64.exe
steps:
- uses: actions/checkout@v5
- name: Build in devcontainer
uses: devcontainers/ci@v0.3
with:
push: never
runCmd: |
set -e
# Build webui
cd webui && npm install && npm run build && cd ..
# Cross-compile (pure Go, no CGO needed)
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
go build -ldflags "-X main.version=${{ github.event.release.tag_name }}" \
-o ${{ matrix.artifact }} ./cmd/mind-map/
# Package as tarball
tar czf ${{ matrix.artifact }}.tar.gz ${{ matrix.artifact }}
- name: Upload release asset
uses: softprops/action-gh-release@v3
with:
files: ${{ matrix.artifact }}.tar.gz
upload-install-script:
name: Upload install scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Upload install.sh and install.ps1
uses: softprops/action-gh-release@v3
with:
files: |
install.sh
install.ps1