add autobuild on delta #3152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |