1 parent
9c305f2a4d
commit
7e2d4ddba1
19 files changed
+901
-26
No files matched your search
@@ -18,6 +18,8 @@
|
||||
# unsigned.
|
||||
|
||||
FROM ubuntu:24.04 AS toolchain
|
||||
# Serial builds keep the generated Slint UI within the CI memory budget.
|
||||
ENV CARGO_BUILD_JOBS=1 CARGO_INCREMENTAL=0
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
# JDK 17 (Gradle, the Android Gradle plugin), CMake + Ninja (the bundled libopus).
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
@@ -79,6 +81,9 @@ FROM toolchain AS build
|
||||
ARG ABIS=arm64-v8a,x86_64
|
||||
# debug (installable as is) or release (signed with the build secrets).
|
||||
ARG APK=debug
|
||||
# BuildKit secrets do not invalidate cached RUN steps. A signed CI build
|
||||
# supplies a fresh non-secret nonce so a rotated key cannot reuse an old APK.
|
||||
ARG SIGNING_CACHE_BUST=unsigned
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN --mount=type=cache,id=voelin-cargo-registry,target=/usr/local/cargo/registry \
|
||||
@@ -86,7 +91,7 @@ RUN --mount=type=cache,id=voelin-cargo-registry,target=/usr/local/cargo/registry
|
||||
--mount=type=cache,id=voelin-gradle,target=/root/.gradle \
|
||||
--mount=type=secret,id=keystore,required=false \
|
||||
--mount=type=secret,id=signing,required=false \
|
||||
set -e; \
|
||||
set -e; : "$SIGNING_CACHE_BUST"; \
|
||||
if [ "$APK" = release ] && [ -f /run/secrets/keystore ]; then \
|
||||
export VOELIN_SIGNING_STORE_FILE=/run/secrets/keystore; \
|
||||
set -a; . /run/secrets/signing; set +a; \
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
# live in cache mounts, so rebuilds are incremental.
|
||||
|
||||
FROM ubuntu:24.04 AS toolchain
|
||||
# Serial builds keep the generated Slint UI within the CI memory budget.
|
||||
ENV CARGO_BUILD_JOBS=1 CARGO_INCREMENTAL=0
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
# The same libraries as CI (.github/actions/system-deps), plus dpkg-dev for
|
||||
# the .deb's dependencies.
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
# on Windows 10 and 11. Unsigned, like CI's (signing: docs/release.md).
|
||||
|
||||
FROM ubuntu:24.04 AS toolchain
|
||||
# Serial builds keep the generated Slint UI within the CI memory budget.
|
||||
ENV CARGO_BUILD_JOBS=1 CARGO_INCREMENTAL=0
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
# mingw-w64 (C compiler and linker), NASM (aws-lc and libvpx assembly), CMake
|
||||
# (the bundled libopus, aws-lc), NSIS (the installer), zip.
|
||||
|
||||
Reference in new issue
Block a user