| 1 |
name: Go version compatibility |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
build: |
| 7 |
runs-on: ${{ matrix.os }} |
| 8 |
strategy: |
| 9 |
matrix: |
| 10 |
go: ["1.24", "stable"] |
| 11 |
os: [ubuntu-latest, ubuntu-24.04-arm] |
| 12 |
name: Go ${{ matrix.go }} build |
| 13 |
steps: |
| 14 |
- name: Checkout |
| 15 |
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 |
| 16 |
with: |
| 17 |
fetch-depth: '1' |
| 18 |
|
| 19 |
- name: Set up Go ${{ matrix.go }} |
| 20 |
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 |
| 21 |
with: |
| 22 |
go-version: ${{ matrix.go }} |
| 23 |
|
| 24 |
- name: Download dependencies |
| 25 |
run: go mod tidy |
| 26 |
|
| 27 |
- name: Build landrun |
| 28 |
run: go build ./cmd/landrun |