You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This switches the exec test to `SIGTERM` rather than `SIGQUIT` since the
latter didn’t seem to work in QEMU, and the distinction doesn’t really
matter for this test.
This also makes the `isatty()` check smarter by checking whether `STDIN`
is, in fact, a terminal.
Added qemu-alpine targets i386, arm32v6, arm32v7, arm64v8, s390x
Co-authored-by: Felipe Gasper <[email protected]>
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+52-27Lines changed: 52 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -12,40 +12,41 @@ on:
12
12
- '.github/workflows/ci.yml'
13
13
push:
14
14
branches:
15
-
- master
15
+
- '*'
16
16
17
17
jobs:
18
18
linux:
19
+
name: Linux (Ubuntu)
19
20
runs-on: ubuntu-latest
20
21
strategy:
21
22
fail-fast: false
22
23
steps:
23
-
- uses: actions/checkout@v3
24
+
- uses: actions/checkout@v4
24
25
with:
25
26
submodules: true
26
-
- name: build
27
+
- name: Build
27
28
run: |
28
29
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y
29
-
- name: stats
30
+
- name: Stats
30
31
run: |
31
32
./qjs -qd
32
-
- name: test
33
+
- name: Run built-in tests
33
34
run: |
34
35
make test
35
-
- name: microbench
36
+
- name: Run microbench
36
37
run: |
37
38
make microbench
38
39
39
40
linux-asan:
40
41
runs-on: ubuntu-latest
41
42
steps:
42
-
- uses: actions/checkout@v3
43
+
- uses: actions/checkout@v4
43
44
with:
44
45
submodules: true
45
-
- name: build
46
+
- name: Build
46
47
run: |
47
48
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_ASAN=y
48
-
- name: test
49
+
- name: Run built-in tests
49
50
env:
50
51
ASAN_OPTIONS: halt_on_error=1
51
52
run: |
@@ -54,15 +55,15 @@ jobs:
54
55
linux-msan:
55
56
runs-on: ubuntu-latest
56
57
steps:
57
-
- uses: actions/checkout@v3
58
+
- uses: actions/checkout@v4
58
59
with:
59
60
submodules: true
60
-
- name: build
61
+
- name: Build
61
62
env:
62
63
CC: clang
63
64
run: |
64
65
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_MSAN=y CONFIG_CLANG=y
65
-
- name: test
66
+
- name: Run built-in tests
66
67
env:
67
68
MSAN_OPTIONS: halt_on_error=1
68
69
run: |
@@ -71,42 +72,43 @@ jobs:
71
72
linux-ubsan:
72
73
runs-on: ubuntu-latest
73
74
steps:
74
-
- uses: actions/checkout@v3
75
+
- uses: actions/checkout@v4
75
76
with:
76
77
submodules: true
77
-
- name: build
78
+
- name: Build
78
79
run: |
79
80
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y
80
-
- name: test
81
+
- name: Run built-in tests
81
82
env:
82
83
UBSAN_OPTIONS: halt_on_error=1
83
84
run: |
84
85
make CONFIG_UBSAN=y test
85
86
86
87
macos:
88
+
name: macOS
87
89
runs-on: macos-latest
88
90
strategy:
89
91
fail-fast: false
90
92
steps:
91
-
- uses: actions/checkout@v3
92
-
- name: build
93
+
- uses: actions/checkout@v4
94
+
- name: Build
93
95
run: |
94
96
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y
95
-
- name: stats
97
+
- name: Stats
96
98
run: |
97
99
./qjs -qd
98
-
- name: test
100
+
- name: Run built-in tests
99
101
run: |
100
102
make test
101
103
102
104
macos-asan:
103
105
runs-on: macos-latest
104
106
steps:
105
-
- uses: actions/checkout@v3
106
-
- name: build
107
+
- uses: actions/checkout@v4
108
+
- name: Build
107
109
run: |
108
110
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_ASAN=y
109
-
- name: test
111
+
- name: Run built-in tests
110
112
env:
111
113
ASAN_OPTIONS: halt_on_error=1
112
114
run: |
@@ -115,11 +117,11 @@ jobs:
115
117
macos-ubsan:
116
118
runs-on: macos-latest
117
119
steps:
118
-
- uses: actions/checkout@v3
119
-
- name: build
120
+
- uses: actions/checkout@v4
121
+
- name: Build
120
122
run: |
121
123
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y
122
-
- name: test
124
+
- name: Run built-in tests
123
125
env:
124
126
UBSAN_OPTIONS: halt_on_error=1
125
127
run: |
@@ -128,8 +130,8 @@ jobs:
128
130
freebsd:
129
131
runs-on: ubuntu-latest
130
132
steps:
131
-
- uses: actions/checkout@v3
132
-
- name: build + test
133
+
- uses: actions/checkout@v4
134
+
- name: Build + test
133
135
uses: vmactions/freebsd-vm@v1
134
136
with:
135
137
usesh: true
@@ -139,3 +141,26 @@ jobs:
139
141
gmake
140
142
./qjs -qd
141
143
gmake test
144
+
145
+
qemu-alpine:
146
+
runs-on: ubuntu-latest
147
+
148
+
strategy:
149
+
fail-fast: false
150
+
matrix:
151
+
platform:
152
+
- i386
153
+
- arm32v6
154
+
- arm32v7
155
+
- arm64v8
156
+
- s390x
157
+
158
+
steps:
159
+
- uses: actions/checkout@v4
160
+
with:
161
+
submodules: recursive
162
+
- name: Get qemu
163
+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
164
+
- name: Run tests on ${{ matrix.platform }}
165
+
run: docker run --rm --interactive --mount type=bind,source=$(pwd),target=/host ${{ matrix.platform }}/alpine sh -c "apk add git patch make gcc libc-dev && cd /host && make test"
0 commit comments