Skip to content

Commit

Permalink
Remove CocoaPods from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
anli5005 authored Oct 11, 2024
1 parent b6f2a63 commit 023339a
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- name: Create Config File
run: |
cat << EOF > Config/Release.xcconfig
#include "Pods/Target Support Files/Pods-PennMobile/Pods-PennMobile.release.xcconfig"
LABS_OAUTH_CLIENT_ID = ${{ secrets.LABS_OAUTH_CLIENT_ID }}
APP_NAME = Penn Mobile
APP_BUNDLE_ID = org.pennlabs.PennMobile
Expand All @@ -33,13 +32,6 @@ jobs:
cat << EOF > api_key.json
${{ secrets.FASTLANE_JSON_KEY }}
EOF
- name: Cache CocoaPods
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Cache SPM
uses: actions/cache@v2
with:
Expand All @@ -50,15 +42,8 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6.8'
ruby-version: '3.3.0'
bundler-cache: true
- name: Download pods
run: bundle exec pod install
- name: Fix pod script
# https://stackoverflow.com/questions/63533819/rsync-error-some-files-could-not-be-transferred-code-23-command-phasescriptex
run: find Pods/Target\ Support\ Files/Pods-PennMobile -name '*-frameworks.sh' -exec sed -i '' 's|source="\$(readlink "\${source}")"|source="\$(readlink -f "\${source}")"|g' {} +
- name: Linter
run: Pods/SwiftLint/swiftlint PennMobile/*
- name: Install the Apple certificate and provisioning profile
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
Expand Down

0 comments on commit 023339a

Please sign in to comment.