Skip to content

Try to clean derived data after to clean up space #142

Try to clean derived data after to clean up space

Try to clean derived data after to clean up space #142

Workflow file for this run

name: reader-sdk-flutter-plugin
on: [push]
jobs:
install-and-test:
runs-on: macos-latest
steps:
- name: Cleanup
run: |
sudo rm -rf /Users/runner/.gradle/caches
sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/*
sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*
sudo rm -rf ~/Library/Developer/Xcode/Archives/*
sudo rm -rf ~/Library/Caches/*
sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Caches/*
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'
- name: Install dependencies
run: flutter pub get
- 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}}
- name: iOS
run: |
cd example
flutter pub get
cd ios
ruby <(curl https://connect.squareup.com/readersdk-installer) install --app-id ${{secrets.SQUARE_READER_SDK_APPLICATION_ID}} --repo-password ${{secrets.SQUARE_READER_SDK_REPOSITORY_PASSWORD}} --version 1.7.4 > /dev/null
flutter clean
flutter pub get
pod update Firebase/CoreOnly
pod install --repo-update
xcodebuild -workspace Runner.xcworkspace -configuration Debug -scheme Runner -sdk iphoneos SKIP_SETUP_SCRIPT=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO