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

binary_artifact.yml: add prebuilding of vup.exe and vdoctor.exe while making releases

This commit is contained in:
Delyan Angelov 2020-12-29 21:51:12 +02:00
parent b28b41d069
commit 468c37e186
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -17,7 +17,11 @@ jobs:
- name: Compile
env:
CC: ${{ matrix.compiler }}
run: make && ./v -cc $CC -o v -prod cmd/v
run: |
make -j4
./v -cc $CC -o v -prod cmd/v
./v -prod cmd/tools/vup.v
./v -prod cmd/tools/vdoctor.v
- name: Create artifact
uses: actions/upload-artifact@v2
with:
@ -43,7 +47,11 @@ jobs:
- name: Compile
env:
CC: ${{ matrix.compiler }}
run: make && ./v -cc $CC -o v -prod cmd/v
run: |
make -j4
./v -cc $CC -o v -prod cmd/v
./v -prod cmd/tools/vup.v
./v -prod cmd/tools/vdoctor.v
- name: Create artifact
uses: actions/upload-artifact@v2
with:
@ -65,7 +73,10 @@ jobs:
- uses: actions/checkout@v1
- uses: msys2/setup-msys2@v2
- name: Compile
run: ./make.bat
run: |
.\make.bat
.\v.exe cmd\tools\vup.v
.\v.exe cmd\tools\vdoctor.v
- name: Create artifact
uses: actions/upload-artifact@v2
with:
@ -124,6 +135,10 @@ jobs:
chmod 755 v || true
chmod 755 v.exe || true
chmod 755 thirdparty/tcc/tcc.exe || true
chmod 755 cmd/tools/vup || true
chmod 755 cmd/tools/vup.exe || true
chmod 755 cmd/tools/vdoctor || true
chmod 755 cmd/tools/vdoctor.exe || true
cd ..
zip -r9 --symlinks ../v_${{ matrix.version }}.zip v/*
cd ..