-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.46 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
name: Build and run tests
on: [push, pull_request]
jobs:
build_and_test_cpu:
name: Build wheels on ${{ matrix.os }} ${{ matrix.label }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macOS-12, 4-core-ubuntu-gpu-t4, 4-core-windows-gpu-t4]
steps:
- uses: actions/checkout@v4
- name: Build project
run: |
cmake -S . -B build -DBUILD_SHARED_LIBS=ON
cmake --build build --parallel
# build_and_test_python:
# name: Build wheels on ${{ matrix.os }} ${{ matrix.label }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-22.04, windows-2022, macOS-12]
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - uses: actions/setup-python@v4
# with:
# python-version: '3.12'
# # Use a venv for macOS runners
# - name: Create Python virtual environment
# run: |
# python3 -m venv _flashlight-text-env
# source _flashlight-text-env/bin/activate
# echo "PATH=$PATH" >> $GITHUB_ENV
# if: runner.os == 'macOS'
# - name: "Install Python Bindings"
# run: |
# pip install numpy
# USE_CUDA=<< parameters.use_cuda >> pip install -v .
# - name: Run Python binding tests
# run: |
# cd bindings/python/test
# USE_CUDA=<< parameters.use_cuda >> python -m unittest discover -v .