Skip to content

Commit 859a5bc

Browse files
authored
numpy version for x86 build
1 parent ae84eb2 commit 859a5bc

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

.github/workflows/charm4py.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ jobs:
3030
python3 auto_test.py
3131
3232
macos:
33-
runs-on: ${{ matrix.os }}
34-
strategy:
35-
matrix:
36-
os: [macos-14, macos-12]
33+
runs-on: macos-14
3734

3835
steps:
3936
- uses: actions/checkout@v3
@@ -59,3 +56,32 @@ jobs:
5956
export PYTHONPATH="$PWD"
6057
export CHARM4PY_TEST_NUM_PROCESSES=2
6158
python3 auto_test.py
59+
60+
macos-x86:
61+
runs-on: macos-12
62+
63+
steps:
64+
- uses: actions/checkout@v3
65+
- name: setup-python
66+
uses: actions/setup-python@v5
67+
with:
68+
python-version: '3.x'
69+
- name: Install dependencies
70+
run: |
71+
python3 -m pip install --upgrade pip
72+
pip3 install setuptools cython cffi greenlet numpy=1.26.4 torch torchvision
73+
- name: build-charm4py
74+
run: |
75+
git fetch --unshallow # Need full repo for 'git describe' used by setup.py
76+
git clone https://github.com/UIUC-PPL/charm charm_src/charm
77+
export CHARM_EXTRA_BUILD_OPTS="--enable-error-checking"
78+
export CHARM_BUILD_PROCESSES=2
79+
export CHARM4PY_BUILD_CFFI=1
80+
python3 setup.py build_ext --inplace
81+
- name: test-charm4py
82+
run: |
83+
export PYTHONPATH="$PWD"
84+
export CHARM4PY_TEST_NUM_PROCESSES=2
85+
python3 auto_test.py
86+
87+

0 commit comments

Comments
 (0)