-
Notifications
You must be signed in to change notification settings - Fork 49
33 lines (28 loc) · 1.08 KB
/
charm4py.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
name: Charm4py
on: [pull_request, merge_group]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: build-charm++
run: |
git fetch --unshallow # Need full repo for 'git describe' used by charm4py
./build charm4py netlrts-linux-x86_64 tcp -g -j4 --with-production
- name: build-charm4py
run: |
pip3 install setuptools 'cython<3' cffi greenlet numpy
git clone https://github.com/UIUC-PPL/charm4py
export PYTHONPATH="$PWD/charm4py"
mkdir -p charm4py/charm_src/charm/bin && cp bin/charmrun charm4py/charm_src/charm/bin
mkdir -p charm4py/charm_src/charm/lib && cp lib/libcharm.so charm4py/charm_src/charm/lib
mkdir -p charm4py/charm_src/charm/include && cp -r -L include/* charm4py/charm_src/charm/include
cd charm4py
export CHARM4PY_BUILD_CFFI=1
python3 setup.py build_ext --inplace
- name: test-charm4py
run: |
export PYTHONPATH="$PWD/charm4py"
export CHARM4PY_TEST_NUM_PROCESSES=2
cd charm4py
python3 auto_test.py