-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (75 loc) · 2.41 KB
/
emsdk.yml
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
---
name: Emscripten nightly tests
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
schedule:
- cron: '30 4 * * *'
workflow_dispatch:
jobs:
emsdk:
name: "EMSDK ${{ matrix.emsdk_version }} Python ${{ matrix.python_version }} ${{ matrix.flavor }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
emsdk_version:
# latest == 3.1.24 passes all tests
- latest
# tot is tip-of-tree
- tot-upstream
python_version:
- "3.11"
- "main"
flavor:
- browser
- browser-debug
- node-dl
- node-dl-debug
- node-pthreads
- wasm64-node
exclude:
# wasm64-node only on main
- flavor: wasm64-node
python_version: 3.11
steps:
- uses: actions/checkout@v3
- name: "Clone and build 'build' Python ${{ matrix.python_version }}"
uses: ./.github/actions/common_setup
id: common
with:
python_version: "${{ matrix.python_version }}"
cache_suffix: "emsdk${{ matrix.emsdk_version }}"
- name: "Install EMSDK ${{ matrix.emsdk_version }}"
uses: mymindstorm/setup-emsdk@v11
with:
version: ${{ matrix.emsdk_version }}
- name: Print emcc version
shell: bash
run: emcc -v
- name: "Build ${{ matrix.python_version }} ${{ matrix.flavor }}"
uses: ./.github/actions/build_emscripten
id: build
with:
emsdk_version: "${{ matrix.emsdk_version }}"
flavor: "${{ matrix.flavor }}"
- name: Run pythoninfo
shell: bash
working-directory: "${{ env.HOST_PYTHON_DIR }}"
run: make pythoninfo
if: ${{ matrix.flavor == 'node-dl' || matrix.flavor == 'node-dl-debug' || matrix.flavor == 'node-pthreads' || matrix.flavor == 'wasm64-node' }}
- name: Run tests
shell: bash
working-directory: "${{ env.HOST_PYTHON_DIR }}"
run: make buildbottest TESTOPTS="-j2"
if: ${{ matrix.flavor == 'node-dl' || matrix.flavor == 'node-pthreads' || matrix.flavor == 'wasm64-node' }}
- name: "Package ${{ matrix.python_version }} ${{ matrix.flavor }}"
uses: ./.github/actions/package_emscripten
id: package
with:
emsdk_version: "${{ matrix.emsdk_version }}"
flavor: "${{ matrix.flavor }}"