Skip to content

Upgrade V8 to v11.7.439.19 #24

Upgrade V8 to v11.7.439.19

Upgrade V8 to v11.7.439.19 #24

Workflow file for this run

name: MacOSX build workflow (debug)
on: [push, pull_request]
jobs:
build:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12, macos-13]
python-version: ['3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel pytest
brew update
brew install boost
# The option --ignore-dependencies is a workaround required to
# avoid boost-python3 installing python@3.11. This option will
# be removed when Python default Mac OSX version will be v3.11
brew install boost-python3 --ignore-dependencies
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
- name: Build wheel
run: |
python setup.py v8
sudo --preserve-env=STPYV8_DEBUG python setup.py sdist bdist_wheel -d stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug
sudo --preserve-env=STPYV8_DEBUG python setup.py install
sudo --preserve-env=STPYV8_DEBUG cp v8/out.gn/x64.release.sample/icudtl.dat stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug/icudtl.dat
env:
STPYV8_DEBUG: 1
- name: Test wheel
run: |
pytest -v
env:
STPYV8_DEBUG: 1
- name: Create wheel zip
uses: vimtor/action-zip@v1.1
with:
files: stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug/
recursive: false
dest: stpyv8-${{ matrix.os }}-python-${{ matrix.python-version }}-debug.zip
- name: Upload wheel zip
uses: actions/upload-artifact@v3
with:
name: wheels
path: stpyv8-${{ matrix.os }}-python-${{ matrix.python-version }}-debug.zip