perf(metrics): stop paying telemetry startup costs on every bd invoca… #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: nix build | |
| on: | |
| pull_request: | |
| paths: | |
| - 'go.mod' | |
| - 'go.sum' | |
| - 'default.nix' | |
| - 'flake.nix' | |
| - 'flake.lock' | |
| - 'overlay.nix' | |
| - 'packages.nix' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'go.mod' | |
| - 'go.sum' | |
| - 'default.nix' | |
| - 'flake.nix' | |
| - 'flake.lock' | |
| - 'overlay.nix' | |
| - 'packages.nix' | |
| workflow_dispatch: | |
| env: | |
| BD_DISABLE_METRICS: "1" | |
| BD_DISABLE_EVENT_FLUSH: "1" | |
| jobs: | |
| nix-build: | |
| name: nix build .#default | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 | |
| - name: Install Nix | |
| uses: DeterminateSystems/determinate-nix-action@61cbfe2efc2d4e7a8a6d56967c3c1058e846c858 # v3 | |
| - name: Build | |
| run: nix build .#default --print-build-logs |