-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Try to build and push to cachix
- Loading branch information
1 parent
ef7607b
commit 4232301
Showing
4 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
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
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 |
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
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
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