Fix typo #10
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: Ubuntu build workflow (debug) | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build wheel on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
python-version: ['3.8', '3.9', '3.10'] | |
exclude: | |
- os: ubuntu-20.04 | |
python-version: '3.10' | |
- os: ubuntu-22.04 | |
python-version: '3.8' | |
- os: ubuntu-22.04 | |
python-version: '3.9' | |
steps: | |
- name: STEP 1. Checkout repository | |
uses: actions/checkout@v3 | |
- name: STEP 2. Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: STEP 3. Install dependencies | |
run: | | |
sudo apt install libboost-dev libboost-system-dev libboost-iostreams-dev libboost-python-dev | |
pip install --upgrade pip setuptools wheel pytest | |
- name: STEP 4. Build wheel | |
run: | | |
python setup.py v8 | |
python setup.py sdist bdist_wheel -d stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug | |
python setup.py install | |
cp v8/out.gn/x64.release.sample/icudtl.dat stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug/icudtl.dat | |
env: | |
STPYV8_DEBUG: 1 | |
V8_DEPS_LINUX: 0 | |
LDFLAGS: -L/usr/lib -L/usr/lib/x86_64-linux-gnu | |
- name: STEP 5. Test wheel | |
run: | | |
pytest -v | |
env: | |
STPYV8_DEBUG: 1 | |
- name: STEP 6. 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: STEP 7. Upload wheel zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: stpyv8-${{ matrix.os }}-python-${{ matrix.python-version }}-debug.zip |