Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkahn authored Feb 28, 2024
1 parent 91e2b0f commit a3e3118
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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]
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 .

0 comments on commit a3e3118

Please sign in to comment.