ci: add cross-compile job with llvm-mingw (#3233)
parent
c9be519990
commit
84fbd5b3d0
|
@ -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:
|
||||
|
|
|
@ -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" ]
|
Loading…
Reference in New Issue