-
Notifications
You must be signed in to change notification settings - Fork 389
Cache the flutter-sdk for testing #4703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
3235dad
try some caching
CoderDake 0ef328c
use it betweenzies
CoderDake 5484e73
try clone first
CoderDake 4d630f1
this might just do it
CoderDake 4d33872
:facepalm:
CoderDake 31659d9
all
CoderDake 752825b
invalidate the cache
CoderDake 4124ebf
cache all steps
CoderDake 112d5f2
trigger another build
9a1cbe7
fix comments
CoderDake c7ae1f3
Update tool/bots.sh
CoderDake 6de6d9d
start work on prep
CoderDake e2936c1
set GH token
CoderDake 81ae60b
proper checkout and cache(hopefully)
CoderDake 87e6e09
indent
CoderDake 0f30669
oops another indent
CoderDake 8aebdd2
improve env
CoderDake 1ee1112
cd into fsd
CoderDake 41edafd
get rid of surrounding quotes
CoderDake cc99cf3
latest flutter candy
CoderDake 301b744
noid
CoderDake fe7ceae
debug outies
CoderDake 7271759
pass the ghtoken
CoderDake b3265fe
gotta love tyepos
CoderDake a8f8ad3
try export instead?
CoderDake 1bfc868
help debugging
CoderDake e5f094c
feeling a bit embarassed at how rusty i am with sed
CoderDake a00a54f
setup flutter-sdk outside bots.sh
CoderDake e491260
!
CoderDake 5b9b641
take a peek at that path
CoderDake 548e2d1
lllll
CoderDake 7df252f
ls no ll
CoderDake 6f95bff
almost there
CoderDake f07039e
try clone first?
CoderDake 876274a
uncomment
CoderDake 3de9921
Merge remote-tracking branch 'upstream/master' into flutter-cache
CoderDake e9fdc69
recomment
CoderDake 05173c4
clean up and sha work
CoderDake abc2464
remove old cache
CoderDake d07d774
much better
CoderDake 50156f1
use remote to get branch sha
CoderDake d208228
origin instead of upstream
CoderDake 30bf0a0
see if flutter doctor can be cached
CoderDake 0154a1c
small cleanup
CoderDake 2bf2abb
try matrix runs on
CoderDake 6e3daa9
better prep naming
CoderDake b065ad7
more caching. here we go
CoderDake ec426c0
try diagnostic logging
CoderDake 8206223
another bit of cleanup
CoderDake f3cfa16
quick try for shard
CoderDake 00dfe2d
Revert "quick try for shard"
CoderDake c025d46
test commit
CoderDake 44fe623
Revert "test commit"
CoderDake 63bbcf3
remove extras
CoderDake 787daa3
new world latest flut can
CoderDake File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Copyright 2022 The Chromium Authors. All rights reserved. | ||
| # Use of this source code is governed by a BSD-style license that can be | ||
| # found in the LICENSE file. | ||
|
|
||
| RESPONSE=$(gh api --paginate /repos/flutter/flutter/branches) | ||
|
CoderDake marked this conversation as resolved.
|
||
|
|
||
| CANDIDATES=$(echo "$RESPONSE" | jq '.[].name' | grep candidate) | ||
|
|
||
| VERSIONS=$(echo "$CANDIDATES" | sed -E 's/.*([0-9]+\.[0-9]+-candidate\.[0-9]+).*/\1/' ) | ||
|
|
||
| LATEST_VERSION=$(echo "$VERSIONS" | sort --version-sort | tail -n 1 ) | ||
|
|
||
| if [ -z ${LATEST_VERSION+x} ]; then | ||
| echo "Unable to get Latest flutter candidate version" | ||
| exit 1 | ||
| fi | ||
|
|
||
| LATEST_FLUTTER_CANDIDATE="flutter-$LATEST_VERSION" | ||
|
|
||
| echo $LATEST_FLUTTER_CANDIDATE | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see ${{ steps.flutter-candidate.outputs.FLUTTER_CANDIDATE }} being used a few times, are we duplicating this, or in other words can it be put in a local var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately I don't think there is a way to make this less verbose.