Use Flutter 3.13.1 with external config.

This commit is contained in:
Dain Nilsson 2023-08-25 10:23:59 +02:00
parent ad645a4b43
commit 34fc3ab788
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
7 changed files with 39 additions and 20 deletions

View File

@ -13,19 +13,23 @@ jobs:
distribution: 'zulu'
java-version: '11'
- uses: actions/checkout@v3
with:
path: 'app'
- name: Read variables from repo
run: cat .github/workflows/env >> $GITHUB_ENV
working-directory: ./app
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.13.0'
flutter-version: ${{ env.FLUTTER }}
- run: |
flutter config
flutter --version
- uses: actions/checkout@v3
with:
path: 'app'
- name: Check app versions
run: |
python set-version.py

View File

@ -6,12 +6,13 @@ jobs:
strings:
runs-on: ubuntu-latest
env:
FLUTTER: '3.13.0'
steps:
- uses: actions/checkout@v3
- name: Read variables from repo
run: cat .github/workflows/env >> $GITHUB_ENV
- name: Ensure main locale is correct
run: python check_strings.py lib/l10n/app_en.arb

View File

@ -39,19 +39,23 @@ jobs:
distribution: 'zulu'
java-version: '11'
- uses: actions/checkout@v3
with:
path: 'app'
- name: Read variables from repo
run: cat .github/workflows/env >> $GITHUB_ENV
working-directory: ./app
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.13.0'
flutter-version: ${{ env.FLUTTER }}
- run: |
flutter config
flutter --version
- uses: actions/checkout@v3
with:
path: 'app'
- name: Run flutter tests
run: |
flutter test

2
.github/workflows/env vendored Normal file
View File

@ -0,0 +1,2 @@
FLUTTER=3.13.1
PYVER=3.11.4

View File

@ -6,15 +6,19 @@ jobs:
build:
runs-on: ubuntu-latest
env:
PYVER: '3.11.4'
FLUTTER: '3.13.0'
container:
image: ubuntu:20.04
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: .github/workflows/env
- name: Read variables from repo
run: cat .github/workflows/env >> $GITHUB_ENV
- name: Install dependencies
run: |
export PYVER_MINOR=${PYVER%.*}

View File

@ -7,12 +7,14 @@ jobs:
runs-on: macos-latest
env:
PYVER: '3.11.4'
MACOSX_DEPLOYMENT_TARGET: "10.15"
steps:
- uses: actions/checkout@v3
- name: Read variables from repo
run: cat .github/workflows/env >> $GITHUB_ENV
- name: Check app versions
run: |
python3 set-version.py
@ -49,7 +51,7 @@ jobs:
with:
channel: 'stable'
architecture: 'x64'
flutter-version: '3.13.0'
flutter-version: ${{ env.FLUTTER }}
- run: flutter config --enable-macos-desktop
- run: flutter --version

View File

@ -6,12 +6,14 @@ jobs:
build:
runs-on: windows-latest
env:
PYVER: '3.11.4'
steps:
- uses: actions/checkout@v3
- name: Read variables from repo
shell: bash
run: cat .github/workflows/env >> $GITHUB_ENV
- name: Check app versions
run: |
python set-version.py
@ -45,7 +47,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.13.0'
flutter-version: ${{ env.FLUTTER }}
- run: flutter config --enable-windows-desktop
- run: flutter --version