Skip to content

Commit

Permalink
Tweak the system python check.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Mar 9, 2023
1 parent 230c214 commit a72699c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/app-build-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ jobs:
${{ steps.dirs.outputs.pip-cache-dir }}
${{ steps.dirs.outputs.docker-cache-dir }}
- name: Determine default system python3 version
- name: Determine system python3 version
id: system-python
run: |
echo "SYSTEM_PYTHON_VERSION=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" >> $GITHUB_ENV
echo "python-version=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
echo "python-version=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" >> ${GITHUB_OUTPUT}
- name: Set up Python
if: inputs.python-source == 'github'
Expand Down Expand Up @@ -193,7 +195,7 @@ jobs:
- name: Build Linux System project (Ubuntu, local)
if: |
startsWith(inputs.runner-os, 'ubuntu')
&& startsWith(inputs.python-version, ${{ env.SYSTEM_PYTHON_VERSION }})
&& startsWith(inputs.python-version, steps.system-python.outputs.python-version)
&& contains(fromJSON('["", "Linux"]'), inputs.target-platform)
&& contains(fromJSON('["", "system"]'), inputs.target-format)
run: |
Expand Down

0 comments on commit a72699c

Please sign in to comment.