1616 generator :
1717 runs-on : ubuntu-20.04
1818 container :
19- image : google/ dart:latest
19+ image : dart:2.17.0
2020 steps :
2121 - uses : actions/checkout@v2
2222 - name : Install ObjectBox C-API
3030 steps :
3131 - uses : actions/checkout@v2
3232 - uses : subosito/flutter-action@v2
33+ with :
34+ flutter-version : 3.0.0
35+ cache : true
3336 - run : ./tool/init.sh
3437
3538 lib :
@@ -41,17 +44,16 @@ jobs:
4144 - macos-11
4245 - ubuntu-20.04
4346 sdk :
44- - stable
47+ - 2.17.0
48+ - 2.16.2
4549 - 2.15.1
4650 - 2.14.4
47- - 2.13.4
4851 - 2.12.0 # currently the lowest fully supported version (i.e. generator + lib)
4952 runs-on : ${{ matrix.os }}
5053 steps :
5154 - uses : dart-lang/setup-dart@v1
5255 with :
5356 sdk : ${{ matrix.sdk }}
54- - run : dart --version
5557 - uses : actions/checkout@v2
5658 - name : Install ObjectBox C-API
5759 working-directory : objectbox
6769 runs-on : ubuntu-20.04
6870 steps :
6971 - uses : dart-lang/setup-dart@v1
72+ with :
73+ sdk : 2.17.0
7074 - uses : actions/checkout@v2
7175 - name : Install ObjectBox C-API
7276 run : ./install.sh
@@ -87,25 +91,34 @@ jobs:
8791 fail-fast : false
8892 matrix :
8993 os :
90- - windows-2022
9194 - macos-11
9295 - ubuntu-20.04
93- channel :
94- - beta
95- - stable
96+ flutter-version :
97+ - 3.0.0
98+ - 2.2.0
99+ # 2.0.0 technically lowest supported, but need 2.2.0 to correctly resolve null safety dependencies.
100+ # https://github.com/flutter/flutter/issues/77282
101+ include :
102+ - flutter-version : 3.0.0 # Flutter 2.9 and newer need Visual Studio 2022 to build desktop.
103+ os : windows-2022
104+ - flutter-version : 2.2.0 # Flutter 2.8.1 and older need Visual Studio 2019 to build desktop.
105+ os : windows-2019
96106 runs-on : ${{ matrix.os }}
97107 steps :
98108 - uses : actions/checkout@v2
99109 - uses : subosito/flutter-action@v2
100110 with :
101- channel : ${{ matrix.channel }}
102- - uses : actions/setup-java@v2 # macos-10.15 and windows-2019 default to Java 8, but Android Plugin requires 11
111+ flutter-version : ${{ matrix.flutter-version }}
112+ cache : true
113+ # macos-11 and windows-2019/2022 default to Java 8, but Android Plugin requires 11.
114+ - uses : actions/setup-java@v2
103115 with :
104116 distribution : ' temurin'
105117 java-version : ' 11'
106118 - run : echo $PATH
107119 - run : flutter --version
120+ # https://docs.flutter.dev/desktop#additional-linux-requirements
108121 - if : ${{ startsWith(matrix.os, 'ubuntu') }}
109122 run : ./tool/apt-install.sh ninja-build pkg-config libgtk-3-dev
110123 - run : make integration-test
111- working-directory : objectbox
124+ working-directory : objectbox
0 commit comments