Skip to content

Commit

Permalink
add gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Oct 29, 2023
1 parent 8013c39 commit 3473c95
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "CI"

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build
- run: nix flake check
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
};

default = packages.all;
override = packages.all;
overrideDerivation = packages.all;
};

devShell = pkgs.mkShell {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs;
[
# Rust
Expand Down

0 comments on commit 3473c95

Please sign in to comment.