forked from icarusglider/PyRai
-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (52 loc) · 1.41 KB
/
nanopy.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
name: nanopy
on: [push]
env:
OMP_NUM_THREADS: 2
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install -Ur requirements.txt
- name: Build Linux/MacOS
if: runner.os != 'Windows'
run: python setup.py build_ext -i
- name: Build Windows
if: runner.os == 'Windows'
run: python setup.py build_ext -i
env:
USE_VC: 1
- run: python ghtest.py
- name: Build GPU
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install ocl-icd-opencl-dev intel-opencl-icd clinfo
rm -rf build/
python setup.py build_ext -i
clinfo
python ghtest-gpu.py
env:
USE_GPU: 1
aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu_latest
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y gcc python3-dev python3-pip
run: |
pip install -Ur requirements.txt
python3 setup.py build_ext -i
python3 ghtest.py