mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 23:14:18 +03:00
pin Python version including patch
This commit is contained in:
parent
c086c0d616
commit
bde4dfdef8
20
.github/workflows/linux.yml
vendored
20
.github/workflows/linux.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PYVER: 3.11
|
||||
PYVER: '3.11.3'
|
||||
FLUTTER: '3.7.10'
|
||||
container:
|
||||
image: ubuntu:18.04
|
||||
@ -17,13 +17,27 @@ jobs:
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
export PYVER_MINOR=${PYVER%.*}
|
||||
echo "PYVER_MINOR: $PYVER_MINOR"
|
||||
apt-get update
|
||||
apt-get install -qq software-properties-common libnotify-dev libayatana-appindicator3-dev patchelf
|
||||
add-apt-repository -y ppa:git-core/ppa
|
||||
add-apt-repository -y ppa:deadsnakes/ppa
|
||||
apt-get install -qq git python$PYVER-dev python$PYVER-venv
|
||||
apt-get install -qq git python$PYVER_MINOR-dev python$PYVER_MINOR-venv
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
ln -s `which python$PYVER` /usr/local/bin/python
|
||||
ln -s `which python$PYVER_MINOR` /usr/local/bin/python
|
||||
PYVER_TEMP=`/usr/local/bin/python --version`
|
||||
export PYVERINST=${PYVER_TEMP#* }
|
||||
echo "PYVERINST=$PYVERINST" >> $GITHUB_ENV
|
||||
echo "Installed python version: $PYVERINST"
|
||||
|
||||
- name: Verify Python version
|
||||
if: ${{ env.PYVERINST != env.PYVER }}
|
||||
run: |
|
||||
echo "Python version not compatible"
|
||||
echo "Installed python version: $PYVERINST"
|
||||
echo "Expected: $PYVER"
|
||||
exit 1
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
PYVER: 3.11
|
||||
PYVER: '3.11.3'
|
||||
MACOSX_DEPLOYMENT_TARGET: "10.15"
|
||||
|
||||
steps:
|
||||
|
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
PYVER: 3.11
|
||||
PYVER: '3.11.3'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
Loading…
Reference in New Issue
Block a user