This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
docs #47
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
nix-flake-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v16 | |
- uses: cachix/cachix-action@v10 | |
with: | |
name: esselius | |
extraPullNames: nix-community | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Enable incremental cache upload | |
run: cachix watch-store esselius & | |
- run: nix flake check | |
home-manager: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v16 | |
- uses: cachix/cachix-action@v10 | |
with: | |
name: esselius | |
extraPullNames: nix-community | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Enable incremental cache upload | |
run: cachix watch-store esselius & | |
- name: Build Home Manager Config | |
run: nix build -L .#homeConfigurations.vagrant.activationPackage | |
nixos: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v16 | |
- uses: cachix/cachix-action@v10 | |
with: | |
name: esselius | |
extraPullNames: nix-community | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Enable incremental cache upload | |
run: cachix watch-store esselius & | |
- name: Build NixOS Config | |
run: nix build -L .#nixosConfigurations.vagrant.config.system.build.toplevel | |
darwin: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v16 | |
- uses: cachix/cachix-action@v10 | |
with: | |
name: esselius | |
extraPullNames: nix-community | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Enable incremental cache upload | |
run: cachix watch-store esselius & | |
- name: Build Darwin Config | |
run: nix build -L .#darwinConfigurations.vagrant.config.system.build.toplevel |