This commit is contained in:
Adam Velebil 2023-04-17 16:01:48 +02:00
commit 0785308bcd
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10
3 changed files with 19 additions and 5 deletions

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
PYVER: 3.11 PYVER: '3.11.3'
FLUTTER: '3.7.10' FLUTTER: '3.7.10'
container: container:
image: ubuntu:18.04 image: ubuntu:18.04
@ -17,13 +17,27 @@ jobs:
steps: steps:
- name: Install dependencies - name: Install dependencies
run: | run: |
export PYVER_MINOR=${PYVER%.*}
echo "PYVER_MINOR: $PYVER_MINOR"
apt-get update apt-get update
apt-get install -qq software-properties-common libnotify-dev libayatana-appindicator3-dev patchelf 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:git-core/ppa
add-apt-repository -y ppa:deadsnakes/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" 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 - uses: actions/checkout@v3

View File

@ -7,7 +7,7 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
env: env:
PYVER: 3.11 PYVER: '3.11.3'
MACOSX_DEPLOYMENT_TARGET: "10.15" MACOSX_DEPLOYMENT_TARGET: "10.15"
steps: steps:

View File

@ -7,7 +7,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
env: env:
PYVER: 3.11 PYVER: '3.11.3'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3