Skip to content

Flutter symbols collection #22374

Flutter symbols collection

Flutter symbols collection #22374

name: Flutter symbols collection
on:
schedule:
# Run once an hour. It takes just a couple of minutes because of status caching.
- cron: '10 * * * *'
workflow_dispatch:
inputs:
flutter_version:
description: Flutter version, can be either a specific version (3.17.0) or a wildcard (3.2.*)
required: false
type: string
default: '3.*.*'
defaults:
run:
working-directory: scripts/flutter_symbol_collector
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 # pin@v1.7.2
- run: dart pub get
- run: dart test
run:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 # pin@v1.7.2
- run: dart pub get
- name: Download status cache of previously processed files
run: |
gh run download --name 'flutter-symbol-collector-database' --dir .cache
grep -r "" .cache
continue-on-error: true
env:
GITHUB_TOKEN: ${{ github.token }}
- run: dart run bin/flutter_symbol_collector.dart --version="$FLUTTER_VERSION"
timeout-minutes: 300
env:
GITHUB_TOKEN: ${{ github.token }}
FLUTTER_VERSION: ${{ inputs.flutter_version || '3.*.*' }}
- name: Upload updated status cache of processed files
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: always()
with:
name: flutter-symbol-collector-database
path: scripts/flutter_symbol_collector/.cache
include-hidden-files: true
overwrite: true
retention-days: 90
if-no-files-found: error