Skip to content

Commit

Permalink
adding foundry to cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Aug 18, 2023
1 parent 8f74507 commit 2881c8e
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/build_python_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os: [ubuntu-22.04, windows-2019, macos-11]
python-version: [cp310]

steps:
Expand All @@ -34,11 +35,11 @@ jobs:
with:
toolchain: stable

- name: setup cargo
uses: actions-rs/cargo@v1
with:
command: build
arguments: --release --all-features
#- name: setup cargo
# uses: actions-rs/cargo@v1
# with:
# command: build
# arguments: --release --all-features

- name: set up python
uses: actions/setup-python@v4
Expand All @@ -52,12 +53,18 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_BUILD: '${{ matrix.python-version }}-*'
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$HOME/.foundry/bin:$PATH" CARGO_TERM_COLOR="always"'
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$UserProfile\.foundry\bin;$PATH"'
CIBW_BEFORE_BUILD: rustup show
CIBW_BEFORE_BUILD_LINUX: >
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$HOME/.foundry/bin:$HOME/.cargo/env:$PATH" CARGO_TERM_COLOR="always"'
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$UserProfile\.foundry\bin;$UserProfile\.cargo\env;$PATH"'
CIBW_BEFORE_ALL_LINUX: >
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
rustup show &&
curl -L https://foundry.paradigm.xyz | sh &&
foundryup
CIBW_BEFORE_ALL_MACOS: >
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
rustup show
rustup show &&
curl -L https://foundry.paradigm.xyz | sh &&
foundryup
CIBW_BUILD_VERBOSITY: 1
with:
output-dir: wheelhouse
Expand Down

0 comments on commit 2881c8e

Please sign in to comment.