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.
34 lines
717 B
YAML
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
|