Skip to content

fix(rewards): fetch TPD /metrics over dmsg, not the default HTTP client #2770

fix(rewards): fetch TPD /metrics over dmsg, not the default HTTP client

fix(rewards): fetch TPD /metrics over dmsg, not the default HTTP client #2770

Workflow file for this run

on:
pull_request:
paths:
- 'nix/**'
- 'go.mod'
- 'go.sum'
- 'vendor/**'
- 'skywire.go'
- 'cmd/**'
- 'pkg/**'
- 'internal/**'
- '.github/workflows/nix.yml'
push:
branches:
- develop
paths:
- 'nix/**'
- 'go.mod'
- 'go.sum'
- 'vendor/**'
- 'skywire.go'
- 'cmd/**'
- 'pkg/**'
- 'internal/**'
- '.github/workflows/nix.yml'
name: Nix
jobs:
build-source:
name: Build skywire (static musl)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v27
with:
# Authenticate Nix's github: flake fetches. Without a token,
# resolving the unpinned `nixos-unstable` branch to a commit
# hits api.github.com unauthenticated, and from shared Actions
# runner IPs that gets throttled (HTTP 429), failing the build.
# GITHUB_TOKEN raises the rate limit enough to avoid that.
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
experimental-features = nix-command flakes
accept-flake-config = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# Free shared Nix cache; speeds up consecutive runs from cold
# to warm by populating /nix/store from previous runs of this
# workflow (across branches/PRs).
- uses: DeterminateSystems/magic-nix-cache-action@main
# Build the source-only target. skywire-bin is intentionally
# skipped here — it wants per-arch sha256s for upstream
# release tarballs; until those land in nix/flake.nix it
# would always fail. A separate workflow can validate it once
# release-time hashes are populated.
- name: nix build .#skywire
working-directory: nix
run: nix build .#skywire --print-build-logs
- name: smoke-test the binary
working-directory: nix
run: |
./result/bin/skywire --bv
./result/bin/skywire-cli --help >/dev/null
./result/bin/skywire-visor --help >/dev/null