Skip to content

Push to FlakeHub

Push to FlakeHub #7

Workflow file for this run

---
name: "Build tests"
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
checks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable binary cache with Cachix
uses: cachix/cachix-action@v12
with:
name: nix-relic
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run Nix checks
run: nix flake check
- name: Build Infrastructure Agent with Nix
run: nix build --print-out-paths ".#infrastructure-agent"
- name: Build OCB with Nix
run: nix build --print-out-paths ".#ocb"
- name: Build New Relic OTel Collector with Nix
run: nix build --print-out-paths ".#nr-otel-collector"