-
Notifications
You must be signed in to change notification settings - Fork 131
74 lines (60 loc) · 1.62 KB
/
ci.yml
File metadata and controls
74 lines (60 loc) · 1.62 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
name: CI
on:
push:
branches:
- main
pull_request:
# Jobs are split between WASI and native because GitHub Action workflows
# impose a 10 GB limit on disk space and building for both WASI and native
# targets exceeds the limit. So use one job for WASI targets and one for
# native to keep us under the limit.
jobs:
wasi_ci:
name: WASI targets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup cache and tools
uses: ./.github/actions/ci-common
with:
cache-prefix: wasi
- name: Lint
run: make lint-wasi-targets
- name: Test
run: make test-wasi-targets
- name: Build plugin
run: make build-default-plugin
- name: Build test plugins
run: make build-test-plugins
- name: Upload plugins
uses: actions/upload-artifact@v7
with:
name: plugins
path: target/**/release/*.wasm
native_ci:
name: Native targets
needs: wasi_ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup cache and tools
uses: ./.github/actions/ci-common
with:
cache-prefix: native
- name: Download plugins
uses: actions/download-artifact@v8
with:
name: plugins
path: target/
- name: Lint
run: make lint-native-targets-ci
- name: Test
run: make test-native-targets-ci
- name: WPT
run: |
npm install --prefix wpt
npm test --prefix wpt