Skip to content

Commit

Permalink
Try to clean derived data after to clean up space
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonjenniges committed Sep 10, 2024
1 parent 3c0ec48 commit 0f53dc0
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
name: reader-sdk-flutter-plugin
on: [push]
jobs:
install-and-test-android:
install-and-test:
runs-on: macos-latest
steps:

- name: Cleanup
- run: sudo rm -rf /Users/runner/.gradle/caches
- run: sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/*
- run: sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*
- run: sudo rm -rf ~/Library/Developer/Xcode/Archives/*
- run: sudo rm -rf ~/Library/Caches/*
- run: sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Caches/*
- run: sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Devices/*

- name: Checkout repository
- uses: actions/checkout@v2

- name: Set up JDK
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Set up Flutter
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
channel: 'stable'

- name: Install dependencies
- run: flutter pub get

# Android
- name: Android
- run: |
cd example
flutter pub get
cd android
./gradlew clean build -PSQUARE_READER_SDK_APPLICATION_ID=${{secrets.SQUARE_READER_SDK_APPLICATION_ID}} -PSQUARE_READER_SDK_REPOSITORY_PASSWORD=${{secrets.SQUARE_READER_SDK_REPOSITORY_PASSWORD}}
install-and-test-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- run: flutter pub get
# iOS
- name: iOS
- run: |
cd example
flutter pub get
Expand Down

0 comments on commit 0f53dc0

Please sign in to comment.