Add CI. #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
linux: | |
name: Linux (Ubuntu) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: make | |
- name: Run built-in tests | |
run: make test | |
# - name: Clone test262 repo | |
# run: git clone https://github.com/tc39/test262.git test262 | |
# - name: Patch test262 repo | |
# run: patch -d test262 -p1 tests/test262.patch | |
# - name: Run test262 suite | |
# run: make test2 | |
mac: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: make | |
- name: Run built-in tests | |
run: make test | |
# - name: Clone test262 repo | |
# run: git clone https://github.com/tc39/test262.git test262 | |
# - name: Patch test262 repo | |
# run: patch -d test262 -p1 tests/test262.patch | |
# - name: Run test262 suite | |
# run: make test2 | |
qemu-alpine: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- i386 | |
- arm32v6 | |
- arm32v7 | |
- arm64v8 | |
- s390x | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get qemu | |
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
- name: Run tests on ${{ matrix.platform }} | |
run: docker run --rm --interactive --mount type=bind,source=$(pwd),target=/host ${{ matrix.platform }}/alpine sh -c "apk add git patch make gcc libc-dev && cd /host && make test" |