mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: fix Build V
This commit is contained in:
parent
5d0f6b8a3d
commit
d521f4d6f3
2 changed files with 1 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
import os
|
||||
|
||||
enum Command {
|
||||
build_v
|
||||
test_symlink
|
||||
test_cross_compilation
|
||||
build_with_cstrict
|
||||
|
@ -47,7 +46,6 @@ fn main() {
|
|||
fn run_step(step Command) {
|
||||
println('Running ${step}...')
|
||||
match step {
|
||||
.build_v { build_v() }
|
||||
.test_symlink { test_symlink() }
|
||||
.test_cross_compilation { test_cross_compilation() }
|
||||
.build_with_cstrict { build_with_cstrict() }
|
||||
|
@ -89,7 +87,6 @@ fn exec(command string) {
|
|||
// Map enum values to human readable step names
|
||||
fn get_step_name(step Command) string {
|
||||
return match step {
|
||||
.build_v { 'Build V' }
|
||||
.test_symlink { 'Test symlink' }
|
||||
.test_cross_compilation { 'Test cross compilation to Linux' }
|
||||
.build_with_cstrict { 'Build V with -cstrict' }
|
||||
|
@ -114,11 +111,6 @@ fn get_step_name(step Command) string {
|
|||
}
|
||||
|
||||
// Step functions
|
||||
fn build_v() {
|
||||
exec('make -j4')
|
||||
exec('./v symlink')
|
||||
}
|
||||
|
||||
fn test_symlink() {
|
||||
exec('v symlink')
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build V
|
||||
run: v run macos_ci.vsh build_v
|
||||
run: make -j4 && ./v symlink
|
||||
- name: Test symlink
|
||||
run: v run macos_ci.vsh test_symlink
|
||||
- name: Test cross compilation to Linux
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue