@@ -3,19 +3,19 @@ name: Build iOS App
33on :
44 push :
55 branches :
6- - master
6+ - main
77 paths :
88 - ' .github/workflows/build-ios.yml'
99 - ' ios/**'
1010 - ' *.podspec'
11- - ' example /ios/**'
11+ - ' examples/bare /ios/**'
1212 - ' src/Spec/**'
1313 pull_request :
1414 paths :
1515 - ' .github/workflows/build-ios.yml'
1616 - ' ios/**'
1717 - ' *.podspec'
18- - ' example /ios/**'
18+ - ' examples/bare /ios/**'
1919 - ' src/Spec/**'
2020
2121jobs :
@@ -24,23 +24,13 @@ jobs:
2424 runs-on : macOS-latest
2525 defaults :
2626 run :
27- working-directory : example /ios
27+ working-directory : examples/bare /ios
2828 steps :
29- - uses : actions/checkout@v2
29+ - uses : actions/checkout@v4
3030
31- - name : Get yarn cache directory path
32- id : yarn-cache-dir-path
33- run : echo "::set-output name=dir::$(yarn cache dir)"
34- - name : Restore node_modules from cache
35- uses : actions/cache@v2
36- id : yarn-cache
37- with :
38- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
39- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
40- restore-keys : |
41- ${{ runner.os }}-yarn-
42- - name : Install node_modules for example/
43- run : yarn install --frozen-lockfile --cwd ..
31+ - name : Install node_modules
32+ run : yarn install --immutable
33+ working-directory : .
4434
4535 - name : Restore buildcache
4636 uses : mikehardy/buildcache-action@v1
@@ -49,32 +39,32 @@ jobs:
4939 - name : Setup Ruby (bundle)
5040 uses : ruby/setup-ruby@v1
5141 with :
52- ruby-version : 2.7
42+ ruby-version : 3.2
5343 bundler-cache : true
54- working-directory : example/ios
44+ working-directory : examples/bare
5545
5646 - name : Restore Pods cache
57- uses : actions/cache@v2
47+ uses : actions/cache@v4
5848 with :
5949 path : |
60- example /ios/Pods
50+ examples/bare /ios/Pods
6151 ~/Library/Caches/CocoaPods
6252 ~/.cocoapods
6353 key : ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
6454 restore-keys : |
6555 ${{ runner.os }}-pods-
6656 - name : Install Pods
67- run : bundle exec pod check || NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
57+ run : bundle exec pod check || bundle exec pod install
6858 - name : Install xcpretty
6959 run : gem install xcpretty
7060 - name : Build App
7161 run : " set -o pipefail && xcodebuild \
7262 CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
7363 -derivedDataPath build -UseModernBuildSystem=YES \
74- -workspace CompressorExample .xcworkspace \
75- -scheme CompressorExample \
64+ -workspace BareExample .xcworkspace \
65+ -scheme BareExample \
7666 -sdk iphonesimulator \
7767 -configuration Debug \
78- -destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
68+ -destination 'platform=iOS Simulator,name=iPhone 15 Pro' \
7969 build \
8070 CODE_SIGNING_ALLOWED=NO | xcpretty"
0 commit comments