PassAGE/.github/workflows/build.yml
fraggle e8c9c74b96 Clarify CI runner vs program compatibility
ubuntu-latest is just the GitHub Actions runner OS.
PassAGE works on any Linux/Unix distro (Venom, Ubuntu, Arch, etc.)
2026-01-11 19:01:44 -04:00

45 lines
929 B
YAML

name: Build and Test
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
# ubuntu-latest is just the GitHub Actions runner OS - PassAGE works on any Linux/Unix distro
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22']
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Verify dependencies
run: go mod verify
- name: Download dependencies
run: go mod download
- name: Build
run: go build -v -o passage .
- name: Test
run: go test -v ./...
- name: Build release version
run: go build -trimpath -ldflags "-s -w" -o passage-release .
- name: Check manpage builds
run: |
sudo apt-get update
sudo apt-get install -y pandoc
make man