Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
normalllll committed Oct 25, 2024
1 parent 39f2c71 commit a367571
Showing 1 changed file with 11 additions and 47 deletions.
58 changes: 11 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,21 @@ jobs:
cache-key: flutter-${{ runner.os }}-${{ matrix.flutter-version }}
cache-path: ${{ runner.tool_cache }}/flutter/${{ matrix.flutter-version }}


- uses: actions/setup-java@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
cache: 'gradle'

- name: Print outputs
shell: bash
run: |
echo CACHE-PATH=${{ steps.flutter-action.outputs.CACHE-PATH }}
echo CACHE-KEY=${{ steps.flutter-action.outputs.CACHE-KEY }}
echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }}
echo VERSION=${{ steps.flutter-action.outputs.VERSION }}
echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }}
echo PUB-CACHE-PATH=${{ steps.flutter-action.outputs.PUB-CACHE-PATH }}
echo PUB-CACHE-KEY=${{ steps.flutter-action.outputs.PUB-CACHE-KEY }}
- name: Cache Gradle Dependencies
uses: actions/cache@v4
with:
path: |
~/android/.gradle/caches
~/android/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Get Flutter Dependencies
run: flutter pub get
Expand Down Expand Up @@ -101,17 +99,6 @@ jobs:
cache-key: flutter-${{ runner.os }}-${{ matrix.flutter-version }}
cache-path: ${{ runner.tool_cache }}/flutter/${{ matrix.flutter-version }}

- name: Print outputs
shell: bash
run: |
echo CACHE-PATH=${{ steps.flutter-action.outputs.CACHE-PATH }}
echo CACHE-KEY=${{ steps.flutter-action.outputs.CACHE-KEY }}
echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }}
echo VERSION=${{ steps.flutter-action.outputs.VERSION }}
echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }}
echo PUB-CACHE-PATH=${{ steps.flutter-action.outputs.PUB-CACHE-PATH }}
echo PUB-CACHE-KEY=${{ steps.flutter-action.outputs.PUB-CACHE-KEY }}
- name: Get Flutter Dependencies
run: flutter pub get

Expand All @@ -121,7 +108,6 @@ jobs:
run: |
cd build\windows\x64\runner\Release && 7z a -tzip windows-x64.zip .\*
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down Expand Up @@ -158,17 +144,6 @@ jobs:
cache-key: flutter-${{ runner.os }}-${{ matrix.flutter-version }}
cache-path: ${{ runner.tool_cache }}/flutter/${{ matrix.flutter-version }}

- name: Print outputs
shell: bash
run: |
echo CACHE-PATH=${{ steps.flutter-action.outputs.CACHE-PATH }}
echo CACHE-KEY=${{ steps.flutter-action.outputs.CACHE-KEY }}
echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }}
echo VERSION=${{ steps.flutter-action.outputs.VERSION }}
echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }}
echo PUB-CACHE-PATH=${{ steps.flutter-action.outputs.PUB-CACHE-PATH }}
echo PUB-CACHE-KEY=${{ steps.flutter-action.outputs.PUB-CACHE-KEY }}
- name: Get Flutter Dependencies
run: flutter pub get

Expand Down Expand Up @@ -211,17 +186,6 @@ jobs:
cache-key: flutter-${{ runner.os }}-${{ matrix.flutter-version }}
cache-path: ${{ runner.tool_cache }}/flutter/${{ matrix.flutter-version }}

- name: Print outputs
shell: bash
run: |
echo CACHE-PATH=${{ steps.flutter-action.outputs.CACHE-PATH }}
echo CACHE-KEY=${{ steps.flutter-action.outputs.CACHE-KEY }}
echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }}
echo VERSION=${{ steps.flutter-action.outputs.VERSION }}
echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }}
echo PUB-CACHE-PATH=${{ steps.flutter-action.outputs.PUB-CACHE-PATH }}
echo PUB-CACHE-KEY=${{ steps.flutter-action.outputs.PUB-CACHE-KEY }}
- name: Get Flutter Dependencies
run: flutter pub get

Expand Down

0 comments on commit a367571

Please sign in to comment.