Fix Python library paths

This commit is contained in:
Wilson Lin 2021-11-12 16:59:28 +11:00
parent 92f03f1aed
commit 10f76c2c9e
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,14 @@
# GitHub Actions # GitHub Actions
This folder contains various GitHub Actions that are run upon every new version Git tag pushed to GitHub. They build, pack, and upload/deploy/publish packages and binaries for using the newly released version in various programming languages and operating systems. This folder contains various GitHub Actions that are run upon every new version Git tag pushed to GitHub. They build, pack, and upload/deploy/publish packages and binaries for using the newly released version in various programming languages and operating systems.
## Self-hosted runners
GitHub currently doesn't provide ARM64 macOS and Linux runners, so we run self-hosted versions. Jobs run on self-hosted machines aren't isolated (e.g. files created during a job run persist on the real filesystem), and most @actions/* don't have ARM64 builds yet, so self-hosted machines should have tools preinstalled before starting the GitHub Actions runner. These include:
- Go
- Rust
- Node.js
- Python/pyenv
See each workflow YAML file for the specific programs that need to be installed beforehand.

View File

@ -98,6 +98,8 @@ jobs:
fi fi
if [[ "${{ runner.name }}" == macos-arm64 ]]; then if [[ "${{ runner.name }}" == macos-arm64 ]]; then
pathToPython="/opt/homebrew/bin/python3" pathToPython="/opt/homebrew/bin/python3"
# Ensure correct maturin and twine are used.
export PATH="/opt/homebrew/bin:$PATH"
else else
pathToPython="$(which python)" pathToPython="$(which python)"
fi fi