From 637a5cc14ff50f92d08a21bedd529442b8698f85 Mon Sep 17 00:00:00 2001 From: syeopite <70992037+syeopite@users.noreply.github.com> Date: Mon, 9 Aug 2021 22:34:52 -0700 Subject: Add CI for testing arm64 docker (#2315) * Add CI for testing build of docker-arm64 * Add specs check to dockerfiles --- docker/Dockerfile | 4 ++++ docker/Dockerfile.arm64 | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'docker') diff --git a/docker/Dockerfile b/docker/Dockerfile index 9a535414..0b6c6ceb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -43,6 +43,10 @@ COPY ./src/ ./src/ # TODO: .git folder is required for building – this is destructive. # See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION. COPY ./.git/ ./.git/ + +RUN crystal spec --warnings all \ + --link-flags "-lxml2 -llzma" + RUN crystal build ./src/invidious.cr \ --static --warnings all \ --link-flags "-lxml2 -llzma" diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 1ec95d8a..54226b66 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -43,6 +43,10 @@ COPY ./src/ ./src/ # TODO: .git folder is required for building – this is destructive. # See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION. COPY ./.git/ ./.git/ + +RUN crystal spec --warnings all \ + --link-flags "-lxml2 -llzma" + RUN crystal build ./src/invidious.cr \ --static --warnings all \ --link-flags "-lxml2 -llzma" -- cgit v1.2.3