Skip to content

Commit d98b8f7

Browse files
committed
adding macos-12 to actions
1 parent b8f8e1e commit d98b8f7

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/charm4py.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
export CHARM4PY_TEST_NUM_PROCESSES=2
3030
python3 auto_test.py
3131
32-
macos-latest:
33-
runs-on: macos-latest
32+
macos-arm:
33+
runs-on: macos-14
3434

3535
steps:
3636
- uses: actions/checkout@v3
@@ -48,3 +48,24 @@ jobs:
4848
export PYTHONPATH="$PWD"
4949
export CHARM4PY_TEST_NUM_PROCESSES=2
5050
python3 auto_test.py
51+
52+
macos-arm:
53+
runs-on: macos-12
54+
55+
steps:
56+
- uses: actions/checkout@v3
57+
- name: build-charm4py
58+
run: |
59+
git fetch --unshallow # Need full repo for 'git describe' used by setup.py
60+
pip3 install setuptools cython cffi greenlet numpy torch torchvision
61+
git clone https://github.com/UIUC-PPL/charm charm_src/charm
62+
export CHARM_EXTRA_BUILD_OPTS="--enable-error-checking"
63+
export CHARM_BUILD_PROCESSES=2
64+
export CHARM4PY_BUILD_CFFI=1
65+
python3 setup.py build_ext --inplace
66+
- name: test-charm4py
67+
run: |
68+
export PYTHONPATH="$PWD"
69+
export CHARM4PY_TEST_NUM_PROCESSES=2
70+
python3 auto_test.py
71+

0 commit comments

Comments
 (0)