-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use setup-python on Windows/arm64 (#3)
* Do not use setup-python on Windows/arm64 Sadly, python-3.xx.x-win32-arm64.zip is not present in https://github.com/actions/python-versions/blob/main/versions-manifest.json As such, setup-python fails to install python on Windows/arm64. Created a temporary *cough* workaround to install python. This is tracked upstream as actions/setup-python#715 * Update README.md
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
# check-python-exists | ||
|
||
This is a basic wrapper around the GHA provided `actions/setup-python` that [avoids the issue with requiring `sudo`][1] and having [`/Users/runner/hostedtoolcache` on the self hosted runner][2]. | ||
This is a basic wrapper around the GHA provided `actions/setup-python` that: | ||
1. [avoids the issue with requiring `sudo`][1] and having [`/Users/runner/hostedtoolcache` on the self hosted runner][2]. | ||
2. Add support for Windows/ARM64 until [it is fixed upstream][3]. | ||
|
||
- If `is-self-hosted: false` then this falls back to `actions/setup-python` at v5.0.0. | ||
- If `python-version` is provided, that takes precedence over any existing `.python-version` files | ||
- If running on Windows/arm64, uses a hack hardcoded for 3.11. | ||
- If you need to point to a different `.python-version` file, pass the path relative to the current working directory to the `python-version-file` parameter. | ||
|
||
[1]: https://github.com/actions/runner-images/issues/7987 | ||
[2]: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#macos | ||
[3]: https://github.com/actions/setup-python/issues/715 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters