Skip to content

Commit

Permalink
ci: test nix flake build of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Jan 10, 2025
1 parent 0a913af commit 6369e40
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lint

on:
pull_request:
push:
branches: [main]
merge_group:

jobs:
pre-commit:
strategy:
matrix:
os: [["ubuntu-latest"], ["self-hosted", "macOS"]]
target: ["backend", "worker"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- uses: cachix/install-nix-action@v30

- name: Wait for nix daemon to start
if: runner.os == 'macOS'
run: wait4path /nix/var/nix/profiles/per-user

- name: Build the target
run: nix build .#${{ matrix.target }}

0 comments on commit 6369e40

Please sign in to comment.