Skip to content

Commit d49fa04

Browse files
committed
Use dart devshell in CI
This also removes the uneeded rust msrv version env in the python CI.
1 parent 9159add commit d49fa04

2 files changed

Lines changed: 15 additions & 22 deletions

File tree

.github/workflows/dart.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,22 @@ 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-dart-and-test:
2014
name: "Build and test dart"
2115
runs-on: ${{ matrix.os }}
22-
defaults:
23-
run:
24-
working-directory: payjoin-ffi/dart
2516
strategy:
2617
matrix:
2718
os: [ubuntu-latest, macos-latest]
2819
steps:
2920
- name: Checkout
3021
uses: actions/checkout@v4
31-
- name: Install Nix
32-
uses: DeterminateSystems/nix-installer-action@main
33-
- name: Build and test
34-
run: nix develop --command bash ./contrib/test.sh
22+
- name: "Use cache"
23+
uses: Swatinem/rust-cache@v2
24+
- name: "Install nix"
25+
uses: DeterminateSystems/determinate-nix-action@main
26+
- name: "Use nix cache"
27+
uses: DeterminateSystems/magic-nix-cache-action@main
28+
- name: "Build and test"
29+
run: nix develop .#dart -c bash ./payjoin-ffi/dart/contrib/test.sh

.github/workflows/python.yml

Lines changed: 7 additions & 9 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-python-and-test:
@@ -25,7 +19,11 @@ jobs:
2519
steps:
2620
- name: Checkout
2721
uses: actions/checkout@v4
28-
- name: Install Nix
29-
uses: DeterminateSystems/nix-installer-action@main
30-
- name: Build and test
22+
- name: "Use cache"
23+
uses: Swatinem/rust-cache@v2
24+
- name: "Install nix"
25+
uses: DeterminateSystems/determinate-nix-action@main
26+
- name: "Use nix cache"
27+
uses: DeterminateSystems/magic-nix-cache-action@main
28+
- name: "Build and test"
3129
run: nix develop .#python --command bash ./payjoin-ffi/python/contrib/test.sh

0 commit comments

Comments
 (0)