3
0
Fork 0
mirror of https://gitea.com/actions/setup-python.git synced 2024-11-29 05:29:34 +01:00

add fix for graalpy ci (#741)

This commit is contained in:
Dmitry Shibanov 2023-10-16 11:57:32 +02:00 committed by GitHub
parent 8635b1ccc5
commit a00ea43da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup GraalPy and check latest - name: Setup GraalPy and check latest
uses: ./ uses: ./
id: graalpy
with: with:
python-version: 'graalpy-23.x' python-version: 'graalpy-23.x'
check-latest: true check-latest: true
@ -109,8 +110,7 @@ jobs:
- name: Assert expected binaries (or symlinks) are present - name: Assert expected binaries (or symlinks) are present
run: | run: |
EXECUTABLE="graalpy-23.0" EXECUTABLE='${{ steps.graalpy.outputs.python-version }}'
EXECUTABLE=${EXECUTABLE/-/} # remove the first '-' in "graalpy-X.Y" -> "graalpyX.Y" to match executable name EXECUTABLE="${EXECUTABLE%.*}"
EXECUTABLE=${EXECUTABLE%%-*} # remove any -* suffixe
${EXECUTABLE} --version ${EXECUTABLE} --version
shell: bash shell: bash