Use x86-64-v3 Microarch
All checks were successful
Invidious CI / build (push) Successful in 5m18s

This commit is contained in:
Fijxu 2024-08-22 22:20:52 -04:00
parent 4a2877f28b
commit ae937d8339
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ get-libs:
# TODO: add support for ARM64 via cross-compilation
invidious: get-libs
crystal build src/invidious.cr $(FLAGS) --progress --stats --error-trace
crystal build src/invidious.cr $(FLAGS) --progress --stats --error-trace --mcpu=x86-64-v3
run: invidious

View file

@ -20,10 +20,10 @@ COPY ./assets/ ./assets/
COPY ./videojs-dependencies.yml ./videojs-dependencies.yml
RUN crystal spec --warnings all \
--link-flags "-lxml2 -llzma"
--link-flags "-lxml2 -llzma"
RUN if [[ "${release}" == 1 ]] ; then \
crystal build ./src/invidious.cr \
--release \
--release --mcpu=x86-64-v3 \
--static --warnings all \
--link-flags "-lxml2 -llzma"; \
else \