ci(nat): provision the second loopback address for Mac controls

The actual macOS run failed with AddrNotAvailable at the fixture bind to 127.0.0.2. Add that loopback alias only for the job and remove it on exit. Build Claude-owned tool 0.5.2 at its fixed source, retaining README and build identity in the package. The standalone job remains isolated from App checks and publication.
This commit is contained in:
AAA committed 2026-11-27 10:04:07 -05:00
1 parent 3a33a6508e
commit 9e41d7810e
1 file changed
+8 -3
+8 -3
View File
@@ -59,7 +59,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
ref: 39db6f6a55e164eccf77b272d2fb216679f8efe1
ref: 9f42ce3e9422e9c714315c2719587446da8bfa64
persist-credentials: false
- name: Build and check the standalone universal tool
working-directory: prototype/nat
@@ -67,6 +67,9 @@ jobs:
run: |
rustup toolchain install 1.91.0 --profile minimal
rustup target add --toolchain 1.91.0 aarch64-apple-darwin x86_64-apple-darwin
# The filtering fixtures bind a second loopback address explicitly.
sudo ifconfig lo0 alias 127.0.0.2
trap 'sudo ifconfig lo0 -alias 127.0.0.2' EXIT
cargo +1.91.0 test --locked --offline
for nat_target in aarch64-apple-darwin x86_64-apple-darwin; do
cargo +1.91.0 build --locked --offline --release --bin piik-nat-lab --target "$nat_target"
@@ -78,6 +81,7 @@ jobs:
lipo "$RUNNER_TEMP/nat-helper/package/piik-nat-lab" -verify_arch arm64 x86_64
"$RUNNER_TEMP/nat-helper/package/piik-nat-lab" --help
cp ../../LICENSE "$RUNNER_TEMP/nat-helper/package/LICENSE"
cp README.md "$RUNNER_TEMP/nat-helper/package/README.md"
{
git rev-parse HEAD
rustc +1.91.0 --version
@@ -85,13 +89,14 @@ jobs:
lipo -info "$RUNNER_TEMP/nat-helper/package/piik-nat-lab"
otool -L "$RUNNER_TEMP/nat-helper/package/piik-nat-lab"
} > "$RUNNER_TEMP/nat-helper/build.txt"
cp "$RUNNER_TEMP/nat-helper/build.txt" "$RUNNER_TEMP/nat-helper/package/BUILD.txt"
cd "$RUNNER_TEMP/nat-helper"
tar -czf piik-nat-lab-macos-universal.tar.gz -C package piik-nat-lab LICENSE
tar -czf piik-nat-lab-macos-universal.tar.gz -C package piik-nat-lab LICENSE README.md BUILD.txt
(cd package && shasum -a 256 piik-nat-lab) > SHA256SUMS
shasum -a 256 piik-nat-lab-macos-universal.tar.gz >> SHA256SUMS
- uses: actions/upload-artifact@v7
with:
name: piik-nat-lab-macos-universal-39db6f6a
name: piik-nat-lab-macos-universal-9f42ce3e
path: |
${{ runner.temp }}/nat-helper/piik-nat-lab-macos-universal.tar.gz
${{ runner.temp }}/nat-helper/build.txt