Skip to content

Commit 4ce246c

Browse files
committed
ci(lspec): usingnix as package manager to handle lean4 and lake versions
1 parent 1085c79 commit 4ce246c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/lspec.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ jobs:
99
name: Build
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: install elan
13-
run: |
14-
set -o pipefail
15-
curl -sSfL https://github.com/leanprover/elan/releases/download/v4.0.0/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
16-
./elan-init -y --default-toolchain none
17-
echo "$HOME/.elan/bin" >> $GITHUB_PATH
1812
- uses: actions/checkout@v2
13+
- uses: cachix/install-nix-action@v22
14+
with:
15+
nix_path: nixpkgs=channel:nixos-24.11
16+
- name: Install Lean
17+
run: nix-shell
18+
- name: Log versions
19+
run: lean --version && lake --version
1920
- name: run LSpec binary
2021
run: lake exe lspec

0 commit comments

Comments
 (0)