Skip to content

Commit

Permalink
Workaround for pybind11 config error on M1.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Nov 25, 2021
1 parent b8145cc commit 56f5f4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ jobs:
- name: Build and run tket proptests
run: conan create --profile=tket recipes/tket-proptests -o boost:without_fiber=True -o boost:without_json=True -o boost:without_nowide=True
- name: Install pybind11
run: conan create --profile=tket recipes/pybind11
run: |
eval "$(pyenv init -)"
pyenv shell tket-3.10
conan create --profile=tket recipes/pybind11
- name: Build pytket (3.8)
if: github.event_name == 'pull_request' || github.event_name == 'push'
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,19 @@ jobs:
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install pybind11
run: |
eval "$(pyenv init -)"
pyenv shell tket-3.10
conan profile new tket --detect --force
conan create --profile=tket recipes/pybind11
- name: Build wheels
run: |
eval "$(pyenv init -)"
pyenv shell tket-3.8
conan profile new tket --detect --force
conan install --profile=tket boost/1.77.0@ --build=missing -o boost:without_fiber=True -o boost:without_json=True -o boost:without_nowide=True
conan create --profile=tket recipes/symengine -o boost:without_fiber=True -o boost:without_json=True -o boost:without_nowide=True
conan create --profile=tket recipes/tket -o boost:without_fiber=True -o boost:without_json=True -o boost:without_nowide=True
conan create --profile=tket recipes/pybind11
.github/workflows/build_macos_m1_wheel
pyenv shell tket-3.9
.github/workflows/build_macos_m1_wheel
Expand Down

0 comments on commit 56f5f4f

Please sign in to comment.