1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: add cross-compile job with llvm-mingw (#3233)

This commit is contained in:
vitalyster
2019-12-27 19:57:49 +03:00
committed by Alexander Medvednikov
parent c9be519990
commit 84fbd5b3d0
2 changed files with 17 additions and 0 deletions

10
Dockerfile.cross Normal file
View File

@@ -0,0 +1,10 @@
FROM mstorsjo/llvm-mingw
LABEL maintainer="Vitaly Takmazov <vitalyster@gmail.com>"
COPY . .
RUN make
RUN ./v -os windows -o v.c v.v
RUN x86_64-w64-mingw32-gcc v.c -std=c99 -w -municode -o v.exe
RUN file v.exe
CMD [ "bash" ]