v2 / .github / workflows / openbsd_ci.yml
93 lines · 89 sloc · 2.85 KB · 9868fef9479917c1b155a5a17347e3daa8f85cf8
Raw
1name: CI OpenBSD
2
3on:
4 workflow_dispatch:
5 push:
6 paths-ignore:
7 - '**.md'
8 - '**.yml'
9 - 'cmd/tools/**'
10 - '!**/openbsd_ci.yml'
11 - '!ci/openbsd_ci.vsh'
12 - '!cmd/tools/builders/**.v'
13 pull_request:
14 paths-ignore:
15 - '**.md'
16 - '**.yml'
17 - 'cmd/tools/**'
18 - '!**/openbsd_ci.yml'
19 - '!ci/openbsd_ci.vsh'
20 - '!cmd/tools/builders/**.v'
21
22### See https://github.com/cross-platform-actions/action
23### for a description of the used fields here
24
25jobs:
26 tcc-openbsd:
27 runs-on: ubuntu-latest
28 timeout-minutes: 30
29 steps:
30 - uses: actions/checkout@v6
31 - name: Tests on OpenBSD with tcc
32 id: tests-openbsd-tcc
33 uses: cross-platform-actions/[email protected]
34 with:
35 operating_system: openbsd
36 version: '7.8'
37 memory: 4G
38 shell: sh
39 sync_files: runner-to-vm
40 run: |
41 sudo pkg_add git sqlite3 gmake boehm-gc libiconv
42 # Install packages needed to build examples
43 sudo pkg_add mariadb-client postgresql-client
44 # Mandatory: hostname not set in VM => some tests fail
45 sudo hostname -s openbsd-ci
46 echo "::group::OS infos"
47 uname -a
48 echo "::endgroup::"
49 echo "::group::Build V"
50 git config --global --add safe.directory .
51 gmake
52 sudo ./v symlink
53 export VTEST_SHOW_LONGEST_BY_RUNTIME=3
54 export VTEST_SHOW_LONGEST_BY_COMPTIME=3
55 export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
56 export VFLAGS='-cc tcc -no-retry-compilation'
57 echo "::endgroup::"
58 ./v run ci/openbsd_ci.vsh all
59
60 clang-openbsd:
61 runs-on: ubuntu-latest
62 timeout-minutes: 30
63 steps:
64 - uses: actions/checkout@v6
65 - name: Tests on OpenBSD with clang
66 id: tests-openbsd-clang
67 uses: cross-platform-actions/[email protected]
68 with:
69 operating_system: openbsd
70 version: '7.8'
71 memory: 4G
72 shell: sh
73 sync_files: runner-to-vm
74 run: |
75 sudo pkg_add git sqlite3 gmake boehm-gc libiconv
76 # Install packages needed to build examples
77 sudo pkg_add mariadb-client postgresql-client
78 # Mandatory: hostname not set in VM => some tests fail
79 sudo hostname -s openbsd-ci
80 echo "::group::OS infos"
81 uname -a
82 clang -v
83 echo "::endgroup::"
84 echo "::group::Build V"
85 git config --global --add safe.directory .
86 gmake
87 sudo ./v symlink
88 export VTEST_SHOW_LONGEST_BY_RUNTIME=3
89 export VTEST_SHOW_LONGEST_BY_COMPTIME=3
90 export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
91 export VFLAGS='-cc clang'
92 echo "::endgroup::"
93 ./v run ci/openbsd_ci.vsh all
94