-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (60 loc) · 1.95 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.2
- name: Install Dependencies
run: |
poetry install --only test
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1.13
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/arm-runner-action@v2.5.2
with:
image_additional_mb: 4096
base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bullseye.img.xz
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