learn icon indicating copy to clipboard operation
learn copied to clipboard

CI/CD pipeline / GitHub action

Open sapatevaibhav opened this issue 1 year ago • 15 comments

Implement a simple dart CI/CD pipeline which will run after every push to the main branch...

sapatevaibhav avatar May 11 '24 09:05 sapatevaibhav

i would like to contribute.. can u pls assign it to me?? I am working on #8 .. i will probably complete that by tonight..

hariram4862 avatar May 11 '24 09:05 hariram4862

@sapatevaibhav Forked Repo Link.. I have tried almost 16 times with different version of kotlin, but I am stuck with this. It shows expected kotlin version is different. I have referred all internet stuffs, but unable to solve that. Pls help me out.

hariram4862 avatar May 11 '24 16:05 hariram4862

Yes the issue is only causing at the time of release build. Try updating flutter_packages

flutter pub get
flutter pub outdated
flutter pub upgrade --major-versions

and then try the workflow...

sapatevaibhav avatar May 11 '24 20:05 sapatevaibhav

ok

hariram4862 avatar May 12 '24 02:05 hariram4862

Yes the issue is only causing at the time of release build. Try updating flutter_packages

flutter pub get
flutter pub outdated
flutter pub upgrade --major-versions

and then try the workflow...

i have tried this... but this isn't working... i am getting this error.. i tried with all possible versions of kotlin and other flutter packages, it isn't working.... but the app is getting built locally on AVD... but not in workflow.. Screenshot 2024-05-12 112050

hariram4862 avatar May 12 '24 05:05 hariram4862

Give a try to 1.9.0

buildscript {
    ext.kotlin_version = '1.9.0'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

it compiled for me image If nothing changes let me know.

sapatevaibhav avatar May 12 '24 08:05 sapatevaibhav

You did this with ur repo or with my forked one ?

hariram4862 avatar May 12 '24 10:05 hariram4862

The latest one pull first then try.

sapatevaibhav avatar May 12 '24 10:05 sapatevaibhav

Can u pls share the code of android/build.gradle , android/app/build.gradle, android/settings.gradle ? Of the one which u recently used (successfully built one)... I tried with ur current repository and mine ...It's not working.. again showing error that it is incompatible kotlin version..

hariram4862 avatar May 12 '24 10:05 hariram4862

Take a look at My workflow The error is not related to kotlin it is related to StoreFile. (Kotlin warnings are few and have no impact on pipeline termination). Last option.....

sapatevaibhav avatar May 12 '24 17:05 sapatevaibhav

If nothing changes build simple pipeline without release.

sapatevaibhav avatar May 12 '24 18:05 sapatevaibhav

@sapatevaibhav Hi. I have sem exams this week. Probably, I will continue contributing from 21st may. So, I kindly request you to hold me as assignee.

Thank you.

hariram4862 avatar May 14 '24 06:05 hariram4862

@sapatevaibhav can you please assign me this issue under GSSOC 2024

samarsajad avatar May 25 '24 06:05 samarsajad

@hariram4862 are you done with exams. ;-)

sapatevaibhav avatar May 25 '24 11:05 sapatevaibhav

Hey @sapatevaibhav as hariram is not showing up. Can you pls assign this issue to me .

hiranj-kotak avatar May 29 '24 13:05 hiranj-kotak