diff --git a/.github/workflows/README.md b/.github/workflows/README.md index a8b2f4f..b03f373 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -1,3 +1,14 @@ # 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. + +## 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. diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3257987..8525b26 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -98,6 +98,8 @@ jobs: fi if [[ "${{ runner.name }}" == macos-arm64 ]]; then pathToPython="/opt/homebrew/bin/python3" + # Ensure correct maturin and twine are used. + export PATH="/opt/homebrew/bin:$PATH" else pathToPython="$(which python)" fi