Resolve macOS linker errors #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
zig-version: ["master", "0.13.0"] | ||
os: [ubuntu-latest] | ||
build-options: ["-Ddisable-ssl -Ddisable-zlib -Ddisable-zstd"] | ||
include: | ||
- zig-version: "master" | ||
os: ubuntu-latest | ||
build-options: "" | ||
runs-on: ${{ matrix.os }} | ||
services: | ||
postgres: | ||
image: postgres:15 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd="pg_isready" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=5 | ||
# Give PostgreSQL some time to start | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Zig | ||
uses: mlugg/setup-zig@v1 | ||
with: | ||
version: ${{ matrix.zig-version }} | ||
use-cache: false | ||
- name: Run `build` | ||
run: zig build ${{ matrix.build-options }} --summary all | ||
- name: Build example programs | ||
run: zig build ${{ matrix.build-options }} examples --summary all |