Skip to content

Commit

Permalink
ECC-1793: develop binary wheel - macos arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Apr 11, 2024
1 parent 4fb6b4c commit fd7ed83
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-wheel-macos-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,53 @@ jobs:

- run: ./scripts/build-macos.sh "3.10"
- run: ./scripts/wheel-macos.sh "3.10"
- run: ls -l wheelhouse
- uses: actions/upload-artifact@v2
name: Upload wheel 3.10
with:
name: wheel-macos-3.10
path: wheelhouse/*.whl
- run: rm -fr wheelhouse

test:
needs: build

runs-on: [self-hosted, macOS, ARM64]

strategy:
fail-fast: true
max-parallel: 1
matrix:
# python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10"]

name: Test with Python ${{ matrix.python-version }}

steps:

- uses: actions/checkout@v2

- uses: actions/download-artifact@v2
with:
name: wheel-macos-${{ matrix.python-version }}

- run: ls -l
- run: ./scripts/select-python.sh ${{ matrix.python-version }}
- run: echo $PATH
- run: source ./dist_venv_${{ matrix.python-version }}/bin/activate
- run: echo $PATH
- run: pip3 install --upgrade pip
- run: ls -l /opt/homebrew/opt/python@${{ matrix.python-version }}/libexec/bin
- run: which python3
- run: python3 --version
- run: pwd
- run: ls -l
- run: pip3 install *.whl
- run: pip3 install -r tests/requirements.txt
- run: pip3 freeze

- run: pytest -v -s
working-directory: tests

- run: rm -fr *.whl tests

4 changes: 2 additions & 2 deletions scripts/wheel-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ brew list
#fi

# set up virtualenv
$ARCH python3 -m venv ./dist_venv
source ./dist_venv/bin/activate
$ARCH python3 -m venv ./dist_venv_${python_version}
source ./dist_venv_${python_version}/bin/activate

pip3 list
brew list
Expand Down

0 comments on commit fd7ed83

Please sign in to comment.