Skip to content

Commit ba4fe5e

Browse files
CI: use fixed versions to avoid builds suddenly failing.
1 parent a90ee06 commit ba4fe5e

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/dart.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
generator:
1717
runs-on: ubuntu-20.04
1818
container:
19-
image: google/dart:latest
19+
image: google/dart:2.17.0
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Install ObjectBox C-API
@@ -30,6 +30,9 @@ jobs:
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,7 +44,7 @@ jobs:
4144
- macos-11
4245
- ubuntu-20.04
4346
sdk:
44-
- stable
47+
- 2.17.0
4548
- 2.16.2
4649
- 2.15.1
4750
- 2.14.4
@@ -67,6 +70,8 @@ jobs:
6770
runs-on: ubuntu-20.04
6871
steps:
6972
- uses: dart-lang/setup-dart@v1
73+
with:
74+
sdk: 2.17.0
7075
- uses: actions/checkout@v2
7176
- name: Install ObjectBox C-API
7277
run: ./install.sh
@@ -90,15 +95,16 @@ jobs:
9095
- windows-2022
9196
- macos-11
9297
- ubuntu-20.04
93-
channel:
94-
- beta
95-
- stable
98+
flutter-version:
99+
- 3.0.0
100+
- 2.0.0 # Lowest supported version, based on lowest supported Dart SDK, see pubspec.yaml files
96101
runs-on: ${{ matrix.os }}
97102
steps:
98103
- uses: actions/checkout@v2
99104
- uses: subosito/flutter-action@v2
100105
with:
101-
channel: ${{ matrix.channel }}
106+
flutter-version: ${{ matrix.flutter-version }}
107+
cache: true
102108
- uses: actions/setup-java@v2 # macos-10.15 and windows-2019 default to Java 8, but Android Plugin requires 11
103109
with:
104110
distribution: 'temurin'

.github/workflows/lint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
analyze:
1313
runs-on: ubuntu-20.04
1414
container:
15-
image: google/dart:latest
15+
image: google/dart:2.17.0
1616
steps:
1717
- uses: actions/checkout@v2
1818
- run: dart run build_runner build
@@ -22,7 +22,7 @@ jobs:
2222
- run: dart format --set-exit-if-changed --fix .
2323

2424
pana:
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-20.04
2626
steps:
2727
- uses: actions/checkout@v2
2828
- uses: axel-op/dart-package-analyzer@v3
@@ -41,10 +41,13 @@ jobs:
4141
fi
4242
4343
coverage:
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-20.04
4545
steps:
4646
- uses: actions/checkout@v2
4747
- uses: subosito/flutter-action@v2
48+
with:
49+
flutter-version: 3.0.0
50+
cache: true
4851
- name: Generage test coverage
4952
working-directory: objectbox
5053
run: |

0 commit comments

Comments
 (0)