From 0f53dc0c3d543f7a0f82f709cb191e6f0de85bfd Mon Sep 17 00:00:00 2001 From: Brandon Jenniges Date: Mon, 9 Sep 2024 13:50:49 -0500 Subject: [PATCH] Try to clean derived data after to clean up space --- .github/workflows/main.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b0e1f7..6279714 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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