Skip to content

Commit

Permalink
https://github.com/rust-lang/cargo/issues/7662
Browse files Browse the repository at this point in the history
  • Loading branch information
mlondschien committed Jun 14, 2022
1 parent 5320912 commit b4586fb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,23 @@ jobs:
# # emulated ones
# CIBW_ARCHS_LINUX: ${{ matrix.vers }}

- name: Debug Info
run: |
cargo build
# - name: Debug Info
# run: |
# cargo build

- name: Debug Info 2
run: |
cd biosphere-py && cargo build
# - name: Debug Info 2
# run: |
# cd biosphere-py && cargo build


- name: Install cibuildwheel
run: |
pip install cibuildwheel
- name: Clear cargo registry case
run: |
rm -rf ${HOME}/.cargo/registry/*
- name: Build wheels
run: |
python -m cibuildwheel biosphere-py --archs ${{ matrix.vers }} --output-dir wheelhouse
Expand Down
9 changes: 5 additions & 4 deletions biosphere-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ before-all = "pip install pip==22.0 && curl https://sh.rustup.rs -sSf | sh -s --
#select = "*-musllinux*"
#before-all = "apk add openssl-dev && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y"

[[tool.cibuildwheel.overrides]]
#[[tool.cibuildwheel.overrides]]
# No yum on musllinux container.
# What is musllinux?
select = "*aarch64*"
before-all = "pip install pip==22.0 && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel && apt install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross && rustup target add aarch64-unknown-linux-gnu && rustup toolchain install stable-aarch64-unknown-linux-gnu"
environment = { PATH="$PATH:$HOME/.cargo/bin", CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc, CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc, CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ }
# select = "*aarch64*"
# before-all = "pip install pip==22.0 && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel && apt install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross && rustup target add aarch64-unknown-linux-gnu && rustup toolchain install stable-aarch64-unknown-linux-gnu"
# environment = { PATH="$PATH:$HOME/.cargo/bin" }
# , CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc, CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc, CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ }

0 comments on commit b4586fb

Please sign in to comment.