zig-objc/.github/workflows/test.yml

22 lines
606 B
YAML
Raw Normal View History

2023-01-02 15:04:59 -08:00
on: [push, pull_request]
name: Test
jobs:
build:
2023-10-20 15:54:57 -07:00
runs-on: macos-12
2023-01-02 15:04:59 -08:00
env:
# Needed for macos SDK
AGREE: "true"
steps:
2023-10-20 15:54:57 -07:00
- name: Checkout code
uses: actions/checkout@v4
2023-01-02 15:04:59 -08:00
2023-10-20 15:54:57 -07:00
# Install Nix and use that to run our tests so our environment matches exactly.
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
2023-01-02 15:04:59 -08:00
2023-10-20 15:54:57 -07:00
# Cross-compile the binary. We always use static building for this
# because its the only way to access the headers.
- name: Test
run: nix develop -c zig build test --summary all