Add V8 testing on CI #14451
Workflow file for this run
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
name: CI | |
on: | |
# If we run CI on all branches then we end up doing duplicate work for | |
# branches which are also PRs. | |
push: | |
branches: | |
- main | |
- kripken/* | |
pull_request: | |
jobs: | |
# Build with gcc 6.3 and run tests on Alpine Linux (inside chroot). | |
# Note: Alpine uses musl libc. | |
# Keep in sync with build_release.yml | |
build-alpine: | |
name: alpine | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: start docker | |
run: | | |
docker run -w /src -dit --name alpine -v $PWD:/src node:lts-alpine | |
echo 'docker exec alpine "$@";' > ./alpine.sh | |
chmod +x ./alpine.sh | |
- name: install packages | |
run: | | |
./alpine.sh apk update | |
./alpine.sh apk add build-base cmake git python3 py3-pip clang ninja bash | |
- name: install v8 | |
run: | | |
./alpine.sh npm install jsvu -g | |
./alpine.sh jsvu --os=default --engines=v8 | |
./alpine.sh file ~/.jsvu/engines/v8/v8 | |