-
-
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): First attempt at building and pushing to cachix via CI
- Loading branch information
1 parent
fb967fe
commit 45d24fe
Showing
3 changed files
with
183 additions
and
104 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,43 @@ | ||
name: "Build and Cache" | ||
on: | ||
pull_request: | ||
push: | ||
branches-ignore: | ||
# ignore automated update branches, rely on pull_request hook | ||
- 'automation/**' | ||
- 'dependabot/**' | ||
jobs: | ||
tests-pass: | ||
name: all systems go | ||
runs-on: ubuntu-latest | ||
if: ${{ always() && contains(needs.*.result, 'failure') }} | ||
steps: | ||
- run: exit 1 | ||
needs: | ||
- tests | ||
|
||
tests: | ||
strategy: | ||
# Allow other jobs to finish building and cache properly before bailing | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-12 # for macOS home-manager | ||
- os: ubuntu-latest | ||
system: "x86_64-linux" | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
extra_nix_config: | | ||
extra-platforms = ${{ matrix.extraPlatforms }} | ||
- uses: cachix/cachix-action@v15 | ||
with: | ||
name: mrjones2014-dotfiles | ||
signingKey: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: build all definitions | ||
run: nix run github:Mic92/nix-fast-build -L -- --skip-cached --no-download --no-nom --eval-workers 1 --eval-max-memory-size 2048 --flake .#checks.${{ matrix.system }} |
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