-
-
Notifications
You must be signed in to change notification settings - Fork 287
Expand file tree
/
Copy pathkotlin-version-compatibility.yml
More file actions
66 lines (56 loc) · 2.04 KB
/
kotlin-version-compatibility.yml
File metadata and controls
66 lines (56 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Kotlin Version Compatibility
on:
push:
branches:
- main
- release/**
pull_request:
paths:
- ".github/workflows/kotlin-version-compatibility.yml"
- "packages/flutter/android/**"
- "packages/flutter/example/android/**"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-apk-kotlin-versions:
name: "APK | Kotlin lang ${{ matrix.kotlin_language_version }}"
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: packages/flutter/example
strategy:
fail-fast: false
matrix:
include:
- kotlin_language_version: "1.7"
kotlin_android_plugin_version: "2.0.21"
- kotlin_language_version: "2.3"
kotlin_android_plugin_version: "2.3.0"
env:
KOTLIN_LANGUAGE_VERSION: ${{ matrix.kotlin_language_version }}
KOTLIN_ANDROID_PLUGIN_VERSION: ${{ matrix.kotlin_android_plugin_version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: "temurin"
java-version: "17"
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
with:
channel: stable
- name: Flutter pub get
run: flutter pub get
- name: Build APK | Kotlin lang ${{ matrix.kotlin_language_version }} | plugin ${{ matrix.kotlin_android_plugin_version }}
run: flutter build apk --debug --target-platform=android-x64
- name: Verify build artifacts
run: |
if [ -f "build/app/outputs/flutter-apk/app-debug.apk" ]; then
echo "APK build successful with Kotlin language version ${{ matrix.kotlin_language_version }}"
ls -lh build/app/outputs/flutter-apk/app-debug.apk
else
echo "APK build failed - artifact not found"
exit 1
fi