mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 00:00:03 +03:00
improvement(ci): Now github should also check if the nix dev-env/build breaks
This commit is contained in:
parent
2d1da2ab57
commit
5f1a63265c
24
.github/workflows/nix.yml
vendored
Normal file
24
.github/workflows/nix.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue