Skip to content

mac arm build and CI addition #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jun 18, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion .github/workflows/charm4py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '5 0 * * *' # Runs at 00:05 UTC every day.

jobs:
build:
ubuntu-latest:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,3 +28,44 @@ jobs:
export PYTHONPATH="$PWD"
export CHARM4PY_TEST_NUM_PROCESSES=2
python3 auto_test.py

macos-arm:
runs-on: macos-14

steps:
- uses: actions/checkout@v3
- name: build-charm4py
run: |
git fetch --unshallow # Need full repo for 'git describe' used by setup.py
pip3 install setuptools cython cffi greenlet numpy torch torchvision
git clone https://github.com/UIUC-PPL/charm charm_src/charm
export CHARM_EXTRA_BUILD_OPTS="--enable-error-checking"
export CHARM_BUILD_PROCESSES=2
export CHARM4PY_BUILD_CFFI=1
python3 setup.py build_ext --inplace
- name: test-charm4py
run: |
export PYTHONPATH="$PWD"
export CHARM4PY_TEST_NUM_PROCESSES=2
python3 auto_test.py

macos-arm:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this x86_64 by any chance?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if the code for the CI steps is identical, this could probably be a build matrix.

runs-on: macos-12

steps:
- uses: actions/checkout@v3
- name: build-charm4py
run: |
git fetch --unshallow # Need full repo for 'git describe' used by setup.py
pip3 install setuptools cython cffi greenlet numpy torch torchvision
git clone https://github.com/UIUC-PPL/charm charm_src/charm
export CHARM_EXTRA_BUILD_OPTS="--enable-error-checking"
export CHARM_BUILD_PROCESSES=2
export CHARM4PY_BUILD_CFFI=1
python3 setup.py build_ext --inplace
- name: test-charm4py
run: |
export PYTHONPATH="$PWD"
export CHARM4PY_TEST_NUM_PROCESSES=2
python3 auto_test.py