2022-08-19 09:58:58 -04:00
|
|
|
name: webassembly port
|
2021-06-23 20:09:57 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*.yml'
|
|
|
|
- 'tools/**'
|
|
|
|
- 'py/**'
|
|
|
|
- 'extmod/**'
|
|
|
|
- 'lib/**'
|
2022-08-19 09:58:58 -04:00
|
|
|
- 'ports/webassembly/**'
|
2021-06-23 20:09:57 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-10 10:50:38 -05:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-23 20:09:57 -04:00
|
|
|
- name: Install packages
|
2022-08-19 09:58:58 -04:00
|
|
|
run: source tools/ci.sh && ci_webassembly_setup
|
2021-06-23 20:09:57 -04:00
|
|
|
- name: Build
|
2022-08-19 09:58:58 -04:00
|
|
|
run: source tools/ci.sh && ci_webassembly_build
|
2021-06-23 20:09:57 -04:00
|
|
|
- name: Run tests
|
2022-08-19 09:58:58 -04:00
|
|
|
run: source tools/ci.sh && ci_webassembly_run_tests
|
2022-11-03 03:47:09 -04:00
|
|
|
- name: Print failures
|
|
|
|
if: failure()
|
|
|
|
run: tests/run-tests.py --print-failures
|