Skip to content

Add AUR packaging and publish workflow #20

Add AUR packaging and publish workflow

Add AUR packaging and publish workflow #20

Workflow file for this run

name: Build Main Branch
on:
push:
branches:
- 'main'
jobs:
build:
name: Build ${{ matrix.goos }}/${{ matrix.goarch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Build the project
env:
CGO_ENABLED: '0'
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
mkdir -p build
go build -trimpath -o "build/dloom-${GOOS}-${GOARCH}" .
- name: Verify build output
run: ls -l "build/dloom-${{ matrix.goos }}-${{ matrix.goarch }}"