Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yorifuji committed May 11, 2023
1 parent 6d0e1ac commit e78a09d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/actions/setup-flutter2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,24 @@ runs:
- name: Set path and env
shell: bash
run: |
echo "FLUTTER_ROOT=${{ runner.temp }}/flutter" >> $GITHUB_ENV
echo "PUB_CACHE=${{ runner.temp }}/flutter/.pub-cache" >> $GITHUB_ENV
echo "${{ runner.temp }}/flutter/bin" >> $GITHUB_PATH
echo "${{ runner.temp }}/flutter/bin/cache/dart-sdk/bin" >> $GITHUB_PATH
echo "${{ runner.temp }}/flutter/.pub-cache/bin" >> $GITHUB_PATH
echo "PUB_CACHE=${{ runner.temp }}/flutter/.pub-cache" >> $GITHUB_ENV
- name: Install Flutter
shell: bash
env:
FLUTTER_PATH: ${{ runner.temp }}/flutter
run: |
git clone https://github.com/flutter/flutter.git --depth 1 --branch ${{ inputs.version }} ${{ env.FLUTTER_PATH }}
echo "FLUTTER_GIT_HASH=`cd ${{ env.FLUTTER_PATH }} && git rev-parse HEAD`" >> $GITHUB_ENV
git clone https://github.com/flutter/flutter.git --depth 1 --branch ${{ inputs.version }} ${{ env.FLUTTER_ROOT }}
echo "FLUTTER_GIT_HASH=`cd ${{ env.FLUTTER_ROOT }} && git rev-parse HEAD`" >> $GITHUB_ENV
- name: Cache
uses: actions/cache@v3
env:
FLUTTER_PATH: ${{ runner.temp }}/flutter
with:
path: |
${{ env.FLUTTER_PATH }}/bin/cache
${{ env.FLUTTER_PATH }}/.pub-cache
${{ env.FLUTTER_ROOT }}/bin/cache
${{ env.FLUTTER_ROOT }}/.pub-cache
key: flutter-setup-cache-${{ runner.os }}-${{ runner.arch }}-${{ inputs.version }}-${{ env.FLUTTER_GIT_HASH }}-${{ hashFiles('pubspec.lock') }}

- shell: bash
Expand Down

0 comments on commit e78a09d

Please sign in to comment.