Skip to content

Commit 853bb38

Browse files
committed
chore: use nix develop .#embedded for CI embedded build
1 parent 04f34f6 commit 853bb38

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/rust.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,13 @@ jobs:
164164
name: Embedded build
165165
runs-on: ubuntu-latest
166166
steps:
167-
- name: "Checkout repo"
167+
- name: Checkout
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)