mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: add new compilable-v-c-and-v-win-c job
This commit is contained in:
parent
5c0c418818
commit
e7e0da7984
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -273,3 +273,27 @@ jobs:
|
|||||||
run: make
|
run: make
|
||||||
- name: Check docs line length
|
- name: Check docs line length
|
||||||
run: ./v run cmd/tools/check-md.v doc/docs.md CHANGELOG.md
|
run: ./v run cmd/tools/check-md.v doc/docs.md CHANGELOG.md
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
compilable-v-c-and-v-win-c:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt install --quiet -y mingw-w64
|
||||||
|
- name: Build V
|
||||||
|
run: make -j4
|
||||||
|
- name: v.c can be compiled
|
||||||
|
run: |
|
||||||
|
./v -os cross -o /tmp/v.c cmd/v
|
||||||
|
cc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -lm
|
||||||
|
ls -lart v_from_vc
|
||||||
|
- name: v_win.c can be compiled
|
||||||
|
run: |
|
||||||
|
./v -os windows -o /tmp/v_win.c cmd/v
|
||||||
|
x86_64-w64-mingw32-gcc /tmp/v_win.c -std=c99 -w -municode -o v_from_vc.exe
|
||||||
|
ls -lart v_from_vc.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user