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

20 lines
566 B
YAML
Raw Normal View History

2023-01-02 15:04:59 -08:00
on: [push, pull_request]
name: Test
jobs:
build:
2025-01-18 17:05:45 +01:00
runs-on: docker
2023-01-02 15:04:59 -08:00
steps:
2023-10-20 15:54:57 -07:00
- name: Checkout code
uses: actions/checkout@v4
2025-01-19 16:41:13 +01:00
- run: |
apt update; apt install --yes sudo
- uses: https://github.com/cachix/install-nix-action@v30
2023-10-20 15:54:57 -07:00
with:
nix_path: nixpkgs=channel:nixos-unstable
2025-01-19 16:41:13 +01:00
enable_kvm: false
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