Skip to content

[Github Actions] [Linux] Do not zip wheel artifacts #157

[Github Actions] [Linux] Do not zip wheel artifacts

[Github Actions] [Linux] Do not zip wheel artifacts #157

Workflow file for this run

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.9', '3.10']
exclude:
- os: ubuntu-20.04
python-version: '3.10'
- os: ubuntu-22.04
python-version: '3.9'
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: |
sudo apt install libboost-dev libboost-system-dev libboost-iostreams-dev libboost-filesystem-dev libboost-python-dev
pip install --upgrade pip setuptools wheel pytest pytest-order
- name: Build wheel
run: |
python setup.py v8
python setup.py sdist bdist_wheel -d stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug
env:
STPYV8_DEBUG: 1
V8_DEPS_LINUX: 0
LDFLAGS: -L/usr/lib -L/usr/lib/x86_64-linux-gnu
- name: Install wheel
run : |
python -m pip install --find-links=stpyv8-${{ matrix.os }}-${{ matrix.python-version }}-debug stpyv8
- name: Test wheel
run: |
pytest -v
env:
STPYV8_DEBUG: 1
- name: Create wheel zip
uses: vimtor/[email protected]
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