ihtc/.github/workflows/nix-build.yml
Kreato 4d68eef67e
fix: make TestBadGateway correct on all platforms
The test expected client.Get() to return a transport-level error for
unreachable targets, but the proxy converts dial errors into HTTP 502
responses. On x86_64-linux the kernel returns EHOSTUNREACH immediately,
the proxy returns 502, and err == nil. On macOS the 5s client timeout
fires first, giving a context error (passing by accident).

Also add Nix CI workflow building on all 4 supported platforms.
2026-06-01 21:50:17 +03:00

34 lines
717 B
YAML

name: Nix build
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
system: x86_64-linux
- os: ubuntu-24.04-arm
system: aarch64-linux
- os: macos-latest
system: aarch64-darwin
- os: macos-13
system: x86_64-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v15
with:
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@v4
- run: nix build .#ihtc --print-build-logs