-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (63 loc) · 1.91 KB
/
wasi.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
---
name: WASI SDK nightly tests
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
jobs:
wasi:
name: "WASI SDK ${{ matrix.wasisdk_version }} on Python ${{ matrix.python_version }}, wasmtime ${{ matrix.wasmtime_version }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
wasisdk_version:
- "16"
python_version:
- "3.11"
- "main"
wasmtime_version:
- "v1.0.1"
- "latest"
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: "wasi${{ matrix.wasisdk_version }}"
- name: Install WASI SDK & wasmtime
uses: ./.github/actions/install_wasi
id: install
with:
wasisdk_version: "${{ matrix.wasisdk_version }}"
wasmtime_version: "${{ matrix.wasmtime_version }}"
- name: "Build ${{ matrix.python_version }}"
uses: ./.github/actions/build_wasi
id: build
with:
wasisdk_version: "${{ matrix.wasisdk_version }}"
wasmtime_version: "${{ matrix.wasmtime_version }}"
- name: Run pythoninfo
shell: bash
working-directory: "${{ env.HOST_PYTHON_DIR }}"
run: make pythoninfo
- name: Run tests
shell: bash
working-directory: "${{ env.HOST_PYTHON_DIR }}"
run: |
set -ex
make buildbottest TESTOPTS="-i '*.test_srcdir' -j2"
- name: "Package ${{ matrix.python_version }}"
uses: ./.github/actions/package_wasi
id: package
with:
wasisdk_version: "${{ matrix.wasisdk_version }}"
if: "${{ matrix.wasmtime_version != 'latest' }}"