Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0459c093f3 |
+13
-6
@@ -24,12 +24,19 @@ branding:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
# Set up the version of Python that supports pyodide
|
# PATCHED for self-hosted runner (offline): 原 actions/setup-python@v5 需联网校验
|
||||||
- uses: actions/setup-python@v5
|
# versions manifest,内网不可达;直接使用 toolcache 预置的 Python 3.12
|
||||||
id: python
|
- id: python
|
||||||
with:
|
run: |
|
||||||
python-version: "3.12"
|
for p in /opt/hostedtoolcache/Python/3.12*/x64/bin/python3.12 /usr/bin/python3.12 /usr/bin/python3; do
|
||||||
update-environment: false
|
if [ -x "$p" ]; then
|
||||||
|
echo "python-path=$p" >> "$GITHUB_OUTPUT"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "no usable python found" >&2
|
||||||
|
exit 1
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- id: cibw
|
- id: cibw
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user