mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: test the new prebuilt packages
This commit is contained in:
parent
71378b8041
commit
1bfcdaa2cc
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@ -2,7 +2,7 @@ name: CI
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
|
||||
build-alpine-docker-musl-gcc:
|
||||
alpine-docker-musl-gcc:
|
||||
name: Alpine/musl
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -20,7 +20,7 @@ jobs:
|
||||
with:
|
||||
entrypoint: .github/workflows/alpine.test.sh
|
||||
|
||||
build-osx:
|
||||
macos:
|
||||
runs-on: macOS-10.14
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -46,7 +46,7 @@ jobs:
|
||||
git clone --depth 1 https://github.com/vlang/vid.git
|
||||
cd vid && ../v -o vid .
|
||||
|
||||
build-ubuntu:
|
||||
ubuntu:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -68,7 +68,16 @@ jobs:
|
||||
- name: x64 machine code generation
|
||||
run: cd examples/x64 && ../../v -x64 hello_world.v && ./hello_world
|
||||
|
||||
build-ubuntu-tcc:
|
||||
ubuntu-prebuilt:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Download V
|
||||
run: wget https://github.com/vbinaries/vbinaries/releases/download/latest/v_linux.zip
|
||||
&& unzip v_linux.zip && ./v --version
|
||||
|
||||
|
||||
ubuntu-tcc:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -85,7 +94,7 @@ jobs:
|
||||
./v -o v2 v.v # Make sure vtcc can build itself
|
||||
./v test v
|
||||
|
||||
build-ubuntu-musl:
|
||||
ubuntu-musl:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -101,7 +110,7 @@ jobs:
|
||||
# - name: Test v->js
|
||||
# run: ./v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
|
||||
build-windows-gcc:
|
||||
windows-gcc:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -120,7 +129,7 @@ jobs:
|
||||
#.\v.exe -o hi.js examples/hello_v_js.v
|
||||
#node hi.js
|
||||
|
||||
build-windows-msvc:
|
||||
windows-msvc:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
@ -411,10 +411,10 @@ pub:
|
||||
|
||||
// `system` works like `exec()`, but only returns a return code.
|
||||
pub fn system(cmd string) int {
|
||||
if cmd.contains(';') || cmd.contains('&&') || cmd.contains('||') || cmd.contains('\n') {
|
||||
//if cmd.contains(';') || cmd.contains('&&') || cmd.contains('||') || cmd.contains('\n') {
|
||||
// TODO remove panic
|
||||
panic(';, &&, || and \\n are not allowed in shell commands')
|
||||
}
|
||||
//panic(';, &&, || and \\n are not allowed in shell commands')
|
||||
//}
|
||||
mut ret := int(0)
|
||||
$if windows {
|
||||
// overcome bug in system & _wsystem (cmd) when first char is quote `"`
|
||||
|
@ -73,9 +73,9 @@ pub fn mkdir(path string) ?bool {
|
||||
|
||||
// exec starts the specified command, waits for it to complete, and returns its output.
|
||||
pub fn exec(cmd string) ?Result {
|
||||
if cmd.contains(';') || cmd.contains('&&') || cmd.contains('||') || cmd.contains('\n') {
|
||||
return error(';, &&, || and \\n are not allowed in shell commands')
|
||||
}
|
||||
//if cmd.contains(';') || cmd.contains('&&') || cmd.contains('||') || cmd.contains('\n') {
|
||||
//return error(';, &&, || and \\n are not allowed in shell commands')
|
||||
//}
|
||||
pcmd := '$cmd 2>&1'
|
||||
f := vpopen(pcmd)
|
||||
if isnil(f) {
|
||||
|
Loading…
Reference in New Issue
Block a user