-
Notifications
You must be signed in to change notification settings - Fork 56
33 lines (32 loc) · 813 Bytes
/
build.yml
File metadata and controls
33 lines (32 loc) · 813 Bytes
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
name: Build (CPU)
on:
push:
branches: [master, dev]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install numpy "pybind11[global]"
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Build
run: pip install .