test(ci): rln-relay compilation in docker (#1853)

* test(ci): rln-relay compilation in docker

* fix(ci): make explicit digest in base image
This commit is contained in:
Aaryamann Challani
2023-07-24 19:25:28 +02:00
committed by GitHub
parent 08f3bba334
commit bf8fa8b972
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
# BUILD NIM APP ----------------------------------------------------------------
FROM alpine:3.16 AS nim-build
# alpine:edge supports building rust binaries, alpine:3.16 doesn't for some reason
FROM alpine@sha256:880fafbab5a7602db21ac37f0d17088a29a9a48f98d581f01ce17312c22ccbb5 AS nim-build
ARG NIMFLAGS
ARG MAKE_TARGET=wakunode2
@@ -9,7 +10,7 @@ ARG NIM_COMMIT
ARG LOG_LEVEL=TRACE
# Get build tools and required header files
RUN apk add --no-cache bash git cargo build-base pcre-dev linux-headers
RUN apk add --no-cache bash git build-base pcre-dev linux-headers curl rust cargo
WORKDIR /app
COPY . .
+1 -1
View File
@@ -26,6 +26,6 @@ then
else
echo "Failed to download $host_triplet-rln.tar.gz"
# Build rln instead
cargo build --release --manifest-path "$build_dir/rln/Cargo.toml"
cargo build --release -p rln --manifest-path "$build_dir/rln/Cargo.toml"
cp "$build_dir/target/release/librln.a" .
fi
+1 -1