- Remove inaccurate macOS/Windows claims - Clarify this is a Linux/Unix program - Update CI to only test Linux builds - Remove misleading 'coming soon' language
46 lines
909 B
YAML
46 lines
909 B
YAML
name: Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
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 (Linux)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y pandoc
|
|
make man
|