Skip to content

Commit

Permalink
feat(ci): Try to build and push to cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jan 7, 2025
1 parent ef7607b commit 4232301
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Cache NixOS Configs
on:
pull_request:
push:
branches-ignore:
# Don't run twice on automation updates, rely on pull_request hook
- 'automation/**'
- 'dependabot/**'
jobs:
build-and-cache:
name: Build packages and push to cachix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@latest
- uses: cachix/cachix-action@v15
with:
name: mrjones2014-dotfiles
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build all outputs and cache
run: |
nix build github:srid/devour-flake \
-L --no-link --print-out-paths \
--override-input flake . | xargs cat | cachix push mrjones2014-dotfiles
2 changes: 1 addition & 1 deletion .github/workflows/check-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/install-nix-action@latest
- uses: cachix/cachix-action@v15
with:
name: mrjones2014-dotfiles
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/install-nix-action@latest
- name: Build mdbook site
run: nix build ./docs/
- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/install-nix-action@latest
- uses: cachix/cachix-action@v15
with:
name: mrjones2014-dotfiles
Expand Down

0 comments on commit 4232301

Please sign in to comment.