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

28 lines
733 B
YAML
Raw Normal View History

2023-01-02 15:04:59 -08:00
on: [push, pull_request]
name: Test
jobs:
build:
2024-11-03 14:57:58 -08:00
runs-on: namespace-profile-ghostty-macos
2024-11-03 15:02:21 -08:00
env:
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
2023-01-02 15:04:59 -08:00
steps:
2023-10-20 15:54:57 -07:00
- name: Checkout code
uses: actions/checkout@v4
2023-01-02 15:04:59 -08:00
2024-11-03 15:02:21 -08:00
- name: Setup Cache
uses: namespacelabs/nscloud-cache-action@v1.2.0
with:
path: |
/nix
/zig
- uses: cachix/install-nix-action@v30
2023-10-20 15:54:57 -07:00
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