API only CI
Moved the change to Dockerfile instead
This commit is contained in:
parent
545a5937d8
commit
93742a09dc
2 changed files with 6 additions and 6 deletions
|
@ -25,18 +25,18 @@ RUN crystal spec --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"
|
--link-flags "-lxml2 -llzma"
|
||||||
|
|
||||||
RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
|
RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build -Dapi_only ./src/invidious.cr \
|
||||||
--release \
|
--release \
|
||||||
-Ddisable_quic \
|
-Ddisable_quic \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
elif [[ "${release}" == 1 ]] ; then \
|
elif [[ "${release}" == 1 ]] ; then \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build -Dapi_only ./src/invidious.cr \
|
||||||
--release \
|
--release \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
else \
|
else \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build -Dapi_only ./src/invidious.cr \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -25,18 +25,18 @@ RUN crystal spec --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"
|
--link-flags "-lxml2 -llzma"
|
||||||
|
|
||||||
RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
|
RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build -Dapi_only ./src/invidious.cr \
|
||||||
--release \
|
--release \
|
||||||
-Ddisable_quic \
|
-Ddisable_quic \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
elif [[ "${release}" == 1 ]] ; then \
|
elif [[ "${release}" == 1 ]] ; then \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build -Dapi_only ./src/invidious.cr \
|
||||||
--release \
|
--release \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
else \
|
else \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build -Dapi_only ./src/invidious.cr \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue