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:
parent
c9be519990
commit
84fbd5b3d0
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -175,6 +175,13 @@ jobs:
|
|||||||
# - name: Test v->js
|
# - name: Test v->js
|
||||||
# run: ./v -o hi.js examples/hello_v_js.v && node hi.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:
|
windows-gcc:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
env:
|
env:
|
||||||
|
10
Dockerfile.cross
Normal file
10
Dockerfile.cross
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user