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 798ecbf
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@ 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 }}'
- run: |
nix build .#nixosConfigurations.servers-us-east-1.config.formats.linode
deploy:
name: Deploy 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 798ecbf

Please sign in to comment.