Skip to content

Commit 082564e

Browse files
committed
chore: use nix develop .#embedded for CI embedded build
1 parent 654d55c commit 082564e

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
@@ -152,14 +152,11 @@ jobs:
152152
steps:
153153
- name: "Checkout repo"
154154
uses: actions/checkout@v4
155-
- name: "Install nightly toolchain"
156-
uses: dtolnay/rust-toolchain@nightly
157-
with:
158-
components: rust-src
159-
targets: thumbv7em-none-eabihf
160-
- name: Install ARM cross compiler
161-
run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
155+
- name: "Use cache"
156+
uses: Swatinem/rust-cache@v2
157+
- name: "Install nix"
158+
uses: DeterminateSystems/determinate-nix-action@main
159+
- name: "Use nix cache"
160+
uses: DeterminateSystems/magic-nix-cache-action@main
162161
- name: "Build embedded target"
163-
env:
164-
CC_thumbv7em_none_eabihf: arm-none-eabi-gcc
165-
run: cargo build -p payjoin --no-default-features --features "alloc,v2" --target thumbv7em-none-eabihf -Zbuild-std=core,alloc
162+
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)