Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env)"
}
use flake
31 changes: 31 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Nix flakes CI"
on:
pull_request:
push:
branches:
- main
- master
jobs:
tests:
runs-on: ubuntu-latest
env:
NIX_BUILD_ARGS: -v --print-build-logs --fallback --show-trace
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v10
with:
name: yatima
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Nix build
run: nix build $NIX_BUILD_ARGS
- name: Nix check
run: nix flake check $NIX_BUILD_ARGS
- name: Nix shell
run: nix shell $NIX_BUILD_ARGS --command echo OK
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
target
Cargo.lock
*.bk
.idea
Loading