-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
82 lines (78 loc) · 2.41 KB
/
openbsd_ci.yml
File metadata and controls
82 lines (78 loc) · 2.41 KB
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
name: CI OpenBSD
on:
workflow_dispatch:
push:
paths-ignore:
- '**.md'
- '**.yml'
- 'cmd/tools/**'
- '!**/openbsd_ci.yml'
- '!ci/openbsd_ci.vsh'
- '!cmd/tools/builders/**.v'
pull_request:
paths-ignore:
- '**.md'
- '**.yml'
- 'cmd/tools/**'
- '!**/openbsd_ci.yml'
- '!ci/openbsd_ci.vsh'
- '!cmd/tools/builders/**.v'
### See https://github.com/cross-platform-actions/action
### for a description of the used fields here
jobs:
tcc-openbsd:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- name: Tests on OpenBSD with tcc
id: tests-openbsd-tcc
uses: cross-platform-actions/action@v0.30.0
with:
operating_system: openbsd
version: '7.8'
memory: 4G
shell: sh
sync_files: runner-to-vm
run: |
sudo pkg_add git sqlite3 gmake boehm-gc libiconv
# Mandatory: hostname not set in VM => some tests fail
sudo hostname -s openbsd-ci
echo "### OS infos"
uname -a
git config --global --add safe.directory .
gmake
sudo ./v symlink
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
export VFLAGS='-cc tcc -no-retry-compilation'
./v run ci/openbsd_ci.vsh all
clang-openbsd:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- name: Tests on OpenBSD with clang
id: tests-openbsd-clang
uses: cross-platform-actions/action@v0.30.0
with:
operating_system: openbsd
version: '7.8'
memory: 4G
shell: sh
sync_files: runner-to-vm
run: |
sudo pkg_add git sqlite3 gmake boehm-gc libiconv
# Mandatory: hostname not set in VM => some tests fail
sudo hostname -s openbsd-ci
echo "### OS infos"
uname -a
git config --global --add safe.directory .
gmake
sudo ./v symlink
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
export VFLAGS='-cc clang'
./v run ci/openbsd_ci.vsh all