File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : vab CI
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - " **.md"
7+ pull_request :
8+ paths-ignore :
9+ - " **.md"
10+
11+ jobs :
12+ vab-compiles-v-examples :
13+ runs-on : ubuntu-20.04
14+ timeout-minutes : 45
15+ steps :
16+ - uses : actions/setup-java@v2
17+ with :
18+ distribution : ' adopt'
19+ java-version : 8
20+
21+ - uses : actions/checkout@v2
22+ - name : Build V
23+ run : make -j2 && ./v -cc gcc -o v cmd/v
24+
25+ - name : Clone vab
26+ run : git clone --depth 1 https://github.com/vlang/vab
27+ - name : Build vab
28+ run : cd vab; ../v ./vab.v ; cd ..
29+
30+ - name : Run tests
31+ run : ./v test vab
32+
33+ - name : Build vab
34+ run : ./v -g vab/vab.v
35+
36+ - name : Run vab --help
37+ run : vab/vab --help
38+
39+ - name : Run vab doctor
40+ run : |
41+ export VEXE=./v
42+ vab/vab doctor
43+
44+ - name : Build graphical V examples as APK
45+ run : |
46+ declare -a v_examples=('flappylearning' '2048' 'fireworks' 'tetris' 'sokol/particles' 'sokol/drawing.v' 'sokol/freetype_raven.v' 'gg/polygons.v' 'gg/raven_text_rendering.v' 'gg/rectangles.v' 'gg/stars.v' 'gg/worker_thread.v')
47+ mkdir apks
48+ export VEXE=./v
49+ for example in "${v_examples[@]}"; do
50+ safe_name=$(echo "$example" | sed 's%/%-%' | sed 's%\.%-%' )
51+ vab/vab -v 3 examples/$example -o apks/$safe_name.apk
52+ done
You can’t perform that action at this time.
0 commit comments