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/**'
|
2023-02-16 20:33:13 -05:00
|
|
|
- 'shared/**'
|
2021-06-23 20:09:57 -04:00
|
|
|
- 'lib/**'
|
2022-08-19 09:58:58 -04:00
|
|
|
- 'ports/webassembly/**'
|
2021-06-23 20:09:57 -04:00
|
|
|
|
2022-12-13 13:57:34 -05:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
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
|