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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

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 . .

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

2
vendor/zerokit vendored

@ -1 +1 @@
Subproject commit 8a365f0c9e5c4a744f70c5dd4904ce8d8f926c34
Subproject commit c6b7a8c0a401dc9a3f5b0511ebfb8727fc19b53a