test: test
Some checks are pending
Invidious CI / build (push) Waiting to run

This commit is contained in:
Fijxu 2025-04-13 02:27:21 -04:00
parent b4e146fb60
commit 9113c2e724
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 13 additions and 2 deletions

View file

@ -52,5 +52,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
"release=1"

View file

@ -7,6 +7,7 @@ ARG release
WORKDIR /invidious
COPY ./shard.yml ./shard.yml
COPY ./shard.lock ./shard.lock
RUN shards install --production
COPY ./src/ ./src/
@ -19,9 +20,17 @@ COPY ./scripts/ ./scripts/
COPY ./assets/ ./assets/
COPY ./videojs-dependencies.yml ./videojs-dependencies.yml
RUN crystal spec --warnings all \
RUN crystal build ./scripts/minify-js.cr \
--release --mcpu=x86-64-v2 \
--static \
--link-flags "-lxml2 -llzma"
RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \
RUN crystal build ./scripts/fetch-player-dependencies.cr \
--release --mcpu=x86-64-v2 \
--static \
--link-flags "-lxml2 -llzma"
RUN if [[ "${release}" == 1 ]] ; then \
crystal build ./src/invidious.cr \
--release --mcpu=x86-64-v2 \
--static --warnings all \