2022-08-19 14:58:58 +01:00
|
|
|
name: webassembly port
|
2021-06-24 01:09:57 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*.yml'
|
|
|
|
- 'tools/**'
|
|
|
|
- 'py/**'
|
|
|
|
- 'extmod/**'
|
2023-02-17 01:33:13 +00:00
|
|
|
- 'shared/**'
|
2021-06-24 01:09:57 +01:00
|
|
|
- 'lib/**'
|
2022-08-19 14:58:58 +01:00
|
|
|
- 'ports/webassembly/**'
|
2021-06-24 01:09:57 +01:00
|
|
|
|
2022-12-13 18:57:34 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-06-24 01:09:57 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 20:42:14 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-06-24 01:09:57 +01:00
|
|
|
- name: Install packages
|
2022-08-19 14:58:58 +01:00
|
|
|
run: source tools/ci.sh && ci_webassembly_setup
|
2021-06-24 01:09:57 +01:00
|
|
|
- name: Build
|
2022-08-19 14:58:58 +01:00
|
|
|
run: source tools/ci.sh && ci_webassembly_build
|
2021-06-24 01:09:57 +01:00
|
|
|
- name: Run tests
|
2022-08-19 14:58:58 +01:00
|
|
|
run: source tools/ci.sh && ci_webassembly_run_tests
|
2022-11-03 07:47:09 +00:00
|
|
|
- name: Print failures
|
|
|
|
if: failure()
|
|
|
|
run: tests/run-tests.py --print-failures
|