File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 67
67
~/.cargo/git/db/
68
68
target/
69
69
key : ${{ runner.os }}-cargo-dist-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
70
+ -
71
+ name : Install dev dependencies
72
+ run : nix-shell --command "make dev-dependencies"
70
73
-
71
74
name : Build distributables
72
75
run : nix-shell --command "make dist-${{ matrix.target }}"
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ build-armv7-unknown-linux-musleabihf:
23
23
24
24
build-mips-unknown-linux-musl :
25
25
# mips is a tier-3 target.
26
- rustup toolchain add nightly-2024-05-17 -x86_64-unknown-linux-gnu
27
- cross +nightly-2024-05-17 build -Z build-std=panic_abort,std --target mips-unknown-linux-musl --release
26
+ rustup toolchain add nightly-2025-02-14 -x86_64-unknown-linux-gnu
27
+ cross +nightly-2025-02-14 build -Z build-std=panic_abort,std --target mips-unknown-linux-musl --release
28
28
29
29
build-mipsel-unknown-linux-musl :
30
30
# mipsel is a tier-3 target.
31
- rustup toolchain add nightly-2024-05-17 -x86_64-unknown-linux-gnu
32
- cross +nightly-2024-05-17 build -Z build-std=panic_abort,std --target mipsel-unknown-linux-musl --release
31
+ rustup toolchain add nightly-2025-02-14 -x86_64-unknown-linux-gnu
32
+ cross +nightly-2025-02-14 build -Z build-std=panic_abort,std --target mipsel-unknown-linux-musl --release
33
33
34
34
# Build distributable binaries for all targets.
35
35
dist : \
@@ -121,3 +121,7 @@ test:
121
121
# Enter the devshell.
122
122
devshell :
123
123
nix-shell
124
+
125
+ # Dependencies
126
+ dev-dependencies :
127
+ cargo install cross --git https://github.com/cross-rs/cross --rev c7dee4d008475ce1c140773cbcd6078f4b86c2aa --locked
Original file line number Diff line number Diff line change @@ -6,9 +6,14 @@ pkgs.mkShell {
6
6
pkgs . protobuf
7
7
pkgs . opkg-utils
8
8
pkgs . jq
9
- pkgs . cargo-cross
9
+ # cargo-cross can be used once version > 0.2.5, as 0.2.5 does not work well
10
+ # with nightly toolchain. It is for now installed through make dev-dependencies.
11
+ # pkgs.cargo-cross
10
12
pkgs . cargo-deb
11
13
] ;
14
+ shellHook = ''
15
+ export PATH=$PATH:~/.cargo/bin
16
+ '' ;
12
17
DOCKER_BUILDKIT = "1" ;
13
18
NIX_STORE = "/nix/store" ;
14
19
}
You can’t perform that action at this time.
0 commit comments