This commit is contained in:
Kreyren 2020-02-07 18:14:15 +00:00
parent 9c12c3bd31
commit 7af21dc164
3 changed files with 11 additions and 1 deletions

@ -121,6 +121,7 @@ jobs:
[ ! -x "/opt/vlang/v" ] && unzip "$HOME/.cache/vlang-0.1.24.zip" -d /opt/vlang [ ! -x "/opt/vlang/v" ] && unzip "$HOME/.cache/vlang-0.1.24.zip" -d /opt/vlang
# Symlink # Symlink
[ ! -h "/usr/bin/v" ] && ln -sf /usr/bin/v /opt/vlang/v [ ! -h "/usr/bin/v" ] && ln -sf /usr/bin/v /opt/vlang/v
ls -la /usr/bin/v
- name: make build-vlang - name: make build-vlang
run: make build-vlang run: make build-vlang
check-vlang: check-vlang:

@ -1,3 +1,7 @@
fn main() { fn hello() {
println("hello world") printf("%s\n", "Hello World")
}
fn main() {
hello()
} }

5
tests/vlang/hello_test.v Normal file

@ -0,0 +1,5 @@
fn hellocheck() {
if hello != "Hello World" {
exit 1
}
}