Update cache-key with Runner.os and Arch (#152)

* Add `${{ runner.os }}` on cache-key

* Add `${{ inputs.architecture }}` as Cache-key
This commit is contained in:
Jiun Kim
2022-04-29 11:03:21 +09:00
committed by GitHub
parent 0f2cd3391b
commit 0c3f14223a

View File

@@ -35,6 +35,6 @@ runs:
uses: actions/cache@v3
with:
path: ${{ inputs.cache-path }}
key: ${{ inputs.cache-key }}-${{ inputs.channel }}-${{ inputs.flutter-version }}
key: ${{ inputs.cache-key }}-${{ runner.os }}-${{ inputs.architecture }}-${{ inputs.channel }}-${{ inputs.flutter-version }}
- run: $GITHUB_ACTION_PATH/setup.sh -c "${{ inputs.cache-path }}" ${{ inputs.channel }} ${{ inputs.flutter-version }} ${{ inputs.architecture }}
shell: bash