Skip to content
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

fix version variable Closes #10 #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ FLUTTER_RELEASE_MANIFEST_URL="https://storage.googleapis.com/flutter_infra_relea
FLUTTER_RELEASE_MANIFEST_FILE="${RUNNER_TEMP}/releases_$FLUTTER_OS.json"
FLUTTER_RELEASE_BASE_URL="https://storage.googleapis.com/flutter_infra_release/releases"

# Flutter runner tool cache and pub cache
# path: "${{ runner.tool_cache }}/flutter-${{ runner.os }}-${{ inputs.version }}-${{ inputs.channel }}-${{ runner.arch }}"
# key: flutter-action-setup-flutter-${{ runner.os }}-${{ inputs.version }}-${{ inputs.channel }}-${{ runner.arch }}
FLUTTER_RUNNER_TOOL_CACHE="${RUNNER_TOOL_CACHE}/flutter-${RUNNER_OS}-${FLUTTER_VERSION}-${FLUTTER_CHANNEL}-${RUNNER_ARCH}"
FLUTTER_PUB_CACHE="${RUNNER_TEMP}/pub-cache"

# Check if Flutter SDK release manifest exists
# Otherwise fetch and cache it
if [ ! -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
Expand Down Expand Up @@ -65,13 +71,6 @@ then
exit 1
fi

# Flutter runner tool cache and pub cache
# path: "${{ runner.tool_cache }}/flutter-${{ runner.os }}-${{ inputs.version }}-${{ runner.arch }}"
# key: flutter-action-setup-flutter-${{ runner.os }}-${{ inputs.version }}-${{ runner.arch }}
FLUTTER_RUNNER_TOOL_CACHE="${RUNNER_TOOL_CACHE}/flutter-${RUNNER_OS}-${FLUTTER_VERSION}-${RUNNER_ARCH}"
FLUTTER_PUB_CACHE="${RUNNER_TEMP}/pub-cache"


# OS archive file extension
EXT="zip"
if [[ $OS == "linux" ]]
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
name: Configure Flutter SDK cache
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/flutter-${{ runner.os }}-${{ inputs.version }}-${{ runner.arch }}
path: ${{ runner.tool_cache }}/flutter-${{ runner.os }}-${{ inputs.version }}-${{ inputs.channel }}-${{ runner.arch }}
key: flutter-action-setup-flutter-${{ runner.os }}-${{ inputs.version }}-${{ inputs.channel }}-${{ runner.arch }}
# Cache the pub dependencies
- if: ${{ inputs.cache == 'true' }}
Expand Down