Skip to content

Commit

Permalink
Try to fix M1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Mar 5, 2024
1 parent 3abc75a commit 3726325
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ jobs:

# Install dependencies

- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
#- uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# cache: 'pip'

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -109,12 +109,13 @@ jobs:

- name: Install leveldb
run: |
brew install leveldb openssl
brew install [email protected] leveldb openssl
echo '/opt/homebrew/opt/[email protected]/libexec/bin' >> $GITHUB_PATH
- name: Install pytest and build module
run: |
pip install pytest
python -m pip install --upgrade build
pip3.10 install pytest
python3.10 -m pip install --upgrade build
# Build counterparty packages

Expand All @@ -125,19 +126,19 @@ jobs:

- name: Build counterparty-lib
run: |
cd counterparty-lib && python -m build --out ../dist
cd counterparty-lib && python3.10 -m build --out ../dist
- name: Build counterparty-cli
run: |
cd counterparty-cli && python -m build --out ../dist
cd counterparty-cli && python3.10 -m build --out ../dist
# Install counterparty packages

- name: Install wheels
run: |
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
export CPATH="$CPATH:$(brew --prefix)/include"
pip install dist/*.whl --force-reinstall
pip3.10 install dist/*.whl --force-reinstall
# Run counterparty-lib tests

Expand Down

0 comments on commit 3726325

Please sign in to comment.