Skip to content

Commit

Permalink
added nix build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Nov 18, 2024
1 parent 2b6cba3 commit 34d6928
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ jobs:
- uses: cachix/cachix-action@v15
with:
name: nexus-ci
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix develop -c nixpkgs-fmt --check .

build:
name: Build NixOS config
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: nexus-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build NixOS machines
run: |
nix build .#nixosConfigurations.servers-us-east-1.config.formats.linode
- name: Run Flake Checks
run: nix flake check

0 comments on commit 34d6928

Please sign in to comment.