fix(comma): avoid downloading latest nixpkgs each time by pinning ver… #35
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: Build | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
paths: | |
- ".github/**" | |
- "**.nix" | |
- "flake.lock" | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
# os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
accept-flake-config = true | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: williamhsieh | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build --show-trace | |
- name: building home-manager profile | |
run: ./result/bin/home-manager build --flake .#william -b bak |