Skip to content

Commit 504491c

Browse files
committed
chore: use nix develop .#embedded for CI embedded build
1 parent 7f1fc3c commit 504491c

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/rust.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,11 @@ jobs:
166166
steps:
167167
- name: "Checkout repo"
168168
uses: actions/checkout@v4
169-
- name: "Install nightly toolchain"
170-
uses: dtolnay/rust-toolchain@nightly
171-
with:
172-
components: rust-src
173-
targets: thumbv7em-none-eabihf
174-
- name: Install ARM cross compiler
175-
run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
169+
- name: "Use cache"
170+
uses: Swatinem/rust-cache@v2
171+
- name: "Install nix"
172+
uses: DeterminateSystems/determinate-nix-action@main
173+
- name: "Use nix cache"
174+
uses: DeterminateSystems/magic-nix-cache-action@main
176175
- name: "Build embedded target"
177-
env:
178-
CC_thumbv7em_none_eabihf: arm-none-eabi-gcc
179-
run: cargo build -p payjoin --no-default-features --features "alloc,v2" --target thumbv7em-none-eabihf -Zbuild-std=core,alloc
176+
run: nix develop .#embedded -c cargo build -p payjoin --no-default-features --features "alloc,v2" --target thumbv7em-none-eabihf -Zbuild-std=core,alloc

0 commit comments

Comments
 (0)