Skip to content

Add more host systems to CI #2

Add more host systems to CI

Add more host systems to CI #2

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
cross-build:
strategy:
matrix:
go-version: ["1.23.3"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
# Our script only installs the dependencies automatically if it's running inside Docker.
# GitHub Actions is not running inside Docker, so we need to set this environment variable
# to allow the automatic installation of the dependencies.
ALLOW_OUTSIDE_DOCKER: "1"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Set up Zig
uses: mlugg/setup-zig@v1
with:
version: 0.14.0-dev.2265+8a00bd4ce
- name: Build
run: |
go mod vendor
make all
- name: Test
run: ./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
cross-build-in-docker:
runs-on: ubuntu-latest
container:
image: golang:1.23.3
steps:
- uses: actions/checkout@v4
- name: Build
run: |
go mod vendor
make all
- name: Test
run: ./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
path: dist