subosito / flutter-action

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

building too slow on mac #110

Closed jianboy closed 2 years ago

jianboy commented 3 years ago

This action costs 6 minute. image

setting:

      - name: Flutter action
        uses: subosito/flutter-action@v1.5.3
        with:
          channel: "stable"
          flutter-version: "2.0.5"
Nealsoni00 commented 3 years ago

same -- any progress on this?

Nealsoni00 commented 3 years ago

Seems like this has been an issue since: https://github.com/subosito/flutter-action/issues/29

@subosito any ideas on how we can decrease macos init time?

Nealsoni00 commented 3 years ago

Adding this brings the action down to 0 seconds on MacOS

# different on macos vs linux https://github.com/subosito/flutter-action/issues/16#issuecomment-574300350
      - name: Get Cached Flutter Dependencies
        uses: actions/cache@v2
        with:
          path: /Users/runner/hostedtoolcache/flutter
          key: ${{ runner.OS }}-flutter-install-cache-2.2.3
mfiumara commented 2 years ago

Also seeing long init time for the action. I will try the caching step from @Nealsoni00.

subosito commented 2 years ago

Closing this. Integration with actions/cache has been added to README.