mirror of
https://github.com/Z3Prover/z3
synced 2026-05-16 07:05:35 +00:00
Harden manylinux Python discovery in workflows
Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/6f228b53-88a3-4a5f-89b6-7a6daaf066a6 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
9db3064f27
commit
8161065781
2 changed files with 5 additions and 5 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -85,7 +85,7 @@ jobs:
|
|||
|
||||
- name: Select Python
|
||||
run: |
|
||||
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
|
||||
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
|
||||
test -x "$PYTHON"
|
||||
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
|
||||
"$PYTHON" --version
|
||||
|
|
@ -132,7 +132,7 @@ jobs:
|
|||
|
||||
- name: Select Python
|
||||
run: |
|
||||
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
|
||||
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
|
||||
test -x "$PYTHON"
|
||||
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
|
||||
"$PYTHON" --version
|
||||
|
|
|
|||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -315,7 +315,7 @@ jobs:
|
|||
|
||||
- name: Select Python
|
||||
run: |
|
||||
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
|
||||
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
|
||||
test -x "$PYTHON"
|
||||
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
|
||||
"$PYTHON" --version
|
||||
|
|
@ -360,7 +360,7 @@ jobs:
|
|||
|
||||
- name: Select Python
|
||||
run: |
|
||||
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
|
||||
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
|
||||
test -x "$PYTHON"
|
||||
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
|
||||
"$PYTHON" --version
|
||||
|
|
@ -415,7 +415,7 @@ jobs:
|
|||
|
||||
- name: Select Python
|
||||
run: |
|
||||
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
|
||||
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
|
||||
test -x "$PYTHON"
|
||||
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
|
||||
"$PYTHON" --version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue