Skip to content

Commit f127a01

Browse files
committed
Add dev shell within the javascript ffi bindings test
Remove msrv rust toolchain env
1 parent f20d847 commit f127a01

1 file changed

Lines changed: 5 additions & 19 deletions

File tree

.github/workflows/javascript.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ on:
88
pull_request:
99
paths:
1010
- payjoin-ffi/**
11-
env:
12-
# Override the value from the rust-toolchain file
13-
# This is necessary because even though the correct toolchain
14-
# is explicitly specified for the rust-toolchain action,
15-
# rustup honors the rust-toolchain file over the default
16-
RUSTUP_TOOLCHAIN: 1.85
1711

1812
jobs:
1913
build-js-and-test:
@@ -29,22 +23,14 @@ jobs:
2923
- name: Checkout
3024
uses: actions/checkout@v4
3125

32-
- name: Install Rust 1.85.0
33-
uses: dtolnay/rust-toolchain@1.85.0
34-
3526
- name: "Use cache"
3627
uses: Swatinem/rust-cache@v2
3728

38-
- name: Install Node
39-
uses: actions/setup-node@v6
40-
41-
- name: Install llvm
42-
if: matrix.os == 'macos-latest'
43-
run: brew install llvm
29+
- name: "Install nix"
30+
uses: DeterminateSystems/determinate-nix-action@main
4431

45-
# 0.2.109+ requires rustc 1.88 (via time crate).
46-
- name: Install wasm-bindgen
47-
run: cargo install --locked wasm-bindgen-cli --version 0.2.108
32+
- name: "Use nix cache"
33+
uses: DeterminateSystems/magic-nix-cache-action@main
4834

4935
- name: "Build and test"
50-
run: bash ./contrib/test.sh
36+
run: nix develop .#msrv -c ./contrib/test.sh

0 commit comments

Comments
 (0)