From 5f1a63265c8d4d33360433cadcc06d754cf6e20c Mon Sep 17 00:00:00 2001 From: x10an14 Date: Wed, 30 Aug 2023 18:26:11 +0200 Subject: [PATCH] improvement(ci): Now github should also check if the nix dev-env/build breaks --- .github/workflows/nix.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..6032a578 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,24 @@ +name: Ensure nix-dev environment still builds correctly + +on: + # On any push or PR + push: + pull_request: + +jobs: + nix-dev-shell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: nixbuild/nix-quick-install-action@v25 + - run: nix build --version + - run: nix build .#devShell + + nix-build-and-run-rustlings: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: nixbuild/nix-quick-install-action@v25 + - run: nix build --version + - name: Build & Run + run: nix run .#rustlings -- --help