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

View File

@ -175,6 +175,13 @@ jobs:
# - name: Test v->js
# run: ./v -o hi.js examples/hello_v_js.v && node hi.js
ubuntu-llvm-mingw:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Cross-compile V
run: docker build . -f Dockerfile.cross
windows-gcc:
runs-on: windows-2019
env:

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" ]