Skip to content

Commit

Permalink
Tweak M1 job
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Mar 5, 2024
1 parent eb6aaa0 commit 9e2c2d8
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ jobs:

# Install dependencies

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

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -107,15 +102,15 @@ jobs:
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

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

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

- name: Build counterparty-lib
run: |
cd counterparty-lib && python3.10 -m build --out ../dist
cd counterparty-lib && python3 -m build --out ../dist
- name: Build counterparty-cli
run: |
cd counterparty-cli && python3.10 -m build --out ../dist
cd counterparty-cli && python3 -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"
pip3.10 install dist/*.whl --force-reinstall
pip3 install dist/*.whl --force-reinstall
# Run counterparty-lib tests

Expand Down

0 comments on commit 9e2c2d8

Please sign in to comment.