ci: build python 3.12 whls #146
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test-ssse3: | |
name: Test SSSE3 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Switch to Current Branch | |
run: git checkout ${{ env.BRANCH }} | |
- name: Setup Python 3.10.4 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10.4" | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v7 | |
with: | |
poetry-version: 1.2.2 | |
- name: Install Dependencies | |
run: | | |
poetry install --only test | |
- name: Setup CMake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: "3.16.x" | |
- name: Build Tests | |
run: | | |
cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_PYBIND11=ON -DPRINT_BENCHMARK=ON -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF | |
make libstreamvbyte libstreamvbyte_tests | |
- name: Test | |
run: | | |
./libstreamvbyte_tests | |
poetry run python -m pytest ./tests/test.py | |
test-neon: | |
name: Test NEON | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Switch to Current Branch | |
run: git checkout ${{ env.BRANCH }} | |
- uses: pguyot/[email protected] | |
with: | |
image_additional_mb: 4096 | |
base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bullseye.7z | |
cpu: cortex-a53 | |
commands: | | |
apt-get update -qq -y | |
apt-get install -qq -y build-essential cmake | |
cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_PYBIND11=OFF -DPRINT_BENCHMARK=ON -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF | |
make libstreamvbyte_tests | |
./libstreamvbyte_tests |