subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.16k stars 191 forks source link

[QUESTION] Is it possible to use custom Flutter SDK? #308

Open thaidmfinnick opened 1 month ago

thaidmfinnick commented 1 month ago

Hi, I'm building Flutter App with Github Actions (of course cannot live without flutter-action), my problem is I have been customized some files in Flutter Engine, Flutter SDK to develop my app so I cannot use pure Flutter SDK as flutter-action provided when building.

Can I do some workaround to use custom flutter sdk in flutter-action?

Thank you!

bartekpacia commented 1 month ago

Hey – it's not possible currently, but this sounds like a valid feature request to me. An example is actions/setup-java Action and how it allows for installation of different JDK distributions.

Please feel free to write down how'd you like this feature to look like, and make a PR.

thaidmfinnick commented 1 month ago

Thank you for your quick response.

I want to add my fork repo of Flutter SDK into GHA, and if possible with hash commit, and demo in my idea like that:

steps:
  - name: Clone repository
    uses: actions/checkout@v4
  - name: Set up Flutter
    uses: subosito/flutter-action@v2
    with:
      git: https://github.com/thaidmfinnick/flutter 
      ref: 34f9afg
  - run: flutter --version

Actually I haven't understood how Flutter SDK, Engine was built and joined together on GHA so I'm not sure it's possible. Look forward to seeing your response!