Skip to content

Commit b8f8e1e

Browse files
committed
Merge branch 'maya/mac-ci' into maya/mac-build
2 parents f8b5e7b + 5e0b5b2 commit b8f8e1e

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/charm4py.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: '5 0 * * *' # Runs at 00:05 UTC every day.
1010

1111
jobs:
12-
build:
12+
ubuntu-latest:
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -28,3 +28,23 @@ jobs:
2828
export PYTHONPATH="$PWD"
2929
export CHARM4PY_TEST_NUM_PROCESSES=2
3030
python3 auto_test.py
31+
32+
macos-latest:
33+
runs-on: macos-latest
34+
35+
steps:
36+
- uses: actions/checkout@v3
37+
- name: build-charm4py
38+
run: |
39+
git fetch --unshallow # Need full repo for 'git describe' used by setup.py
40+
pip3 install setuptools cython cffi greenlet numpy torch torchvision
41+
git clone https://github.com/UIUC-PPL/charm charm_src/charm
42+
export CHARM_EXTRA_BUILD_OPTS="--enable-error-checking"
43+
export CHARM_BUILD_PROCESSES=2
44+
export CHARM4PY_BUILD_CFFI=1
45+
python3 setup.py build_ext --inplace
46+
- name: test-charm4py
47+
run: |
48+
export PYTHONPATH="$PWD"
49+
export CHARM4PY_TEST_NUM_PROCESSES=2
50+
python3 auto_test.py

0 commit comments

Comments
 (0)