forked from vlang/v
-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (99 loc) · 3.14 KB
/
paths_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Path Testing CI
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
concurrency:
group: build-paths-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
space-paths-linux:
runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30
env:
MY_V_PATH: '你好 my $path, @с интервали'
steps:
- uses: actions/checkout@v3
with:
path: ${{env.MY_V_PATH}}
- name: Build V
run: |
echo '${{env.MY_V_PATH}}'
ls -la
cd '${{env.MY_V_PATH}}'
ls -la
make
- name: v doctor
run: |
cd '${{env.MY_V_PATH}}'
./v doctor
- name: v tests
run: |
cd '${{env.MY_V_PATH}}'
./v test vlib/builtin vlib/os
space-paths-macos:
runs-on: macOS-latest
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30
env:
MY_V_PATH: '你好 my $path, @с интервали'
steps:
- uses: actions/checkout@v3
with:
path: ${{env.MY_V_PATH}}
- name: Build V
run: |
echo '${{env.MY_V_PATH}}'
ls -la
cd '${{env.MY_V_PATH}}'
ls -la
make
## prebuild cmd/tools/builders/js_builder, to minimise the
## chances of a sporadic "Killed" when running the tests later
./v -b js run examples/hello_world.v
- name: v doctor
run: |
cd '${{env.MY_V_PATH}}'
./v doctor
- name: v tests
run: |
cd '${{env.MY_V_PATH}}'
./v test vlib/builtin vlib/os
space-paths-windows:
runs-on: windows-2022
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30
env:
MY_V_PATH: 'path with some $punctuation, and some spaces'
## NB: the following paths do not work for now:
##### MY_V_PATH: '你好 my $path, @с интервали'
##### MY_V_PATH: 'path with some $punctuation, and some spaces '
## tcc has a problem interpreting paths with non latin letters in them,
## by default, but that can be solved with passing -Bthirdparty/tcc
## but after that V fails self building with:
####### builder error: cannot write to folder
####### D:\a\v\v\你好 my $path, @с интервали: No such file or directory
## and that happens even for gcc builds, not just tcc ones
steps:
- uses: actions/checkout@v3
with:
path: ${{env.MY_V_PATH}}
- name: Build V
run: |
echo '${{env.MY_V_PATH}}'
dir
cd '${{env.MY_V_PATH}}'
dir
.\make.bat -tcc
- name: v doctor
run: |
cd '${{env.MY_V_PATH}}'
./v doctor
- name: v tests
run: |
cd '${{env.MY_V_PATH}}'
./v test vlib/builtin vlib/os