Skip to content

fix build fail

fix build fail #7

Workflow file for this run

name: iOS Build
on:
push:
branches-ignore:
- 'main' # ๋ฉ”์ธ ๋ธŒ๋žœ์น˜์— push ํ•  ๋•Œ๋Š” ๋ฌด์‹œ
pull_request:
branches:
- 'develop'
jobs:
build:
name: iOS Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ios
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile --network-timeout 300000
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.6
bundler-cache: true
- name: Restore Pods cache
uses: actions/cache@v3
with:
path: |
ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
run: pod install --repo-update && cd ..
- name: Build App
run: |
cd ios
xcodebuild -workspace Katchup.xcworkspace -scheme Katchup -sdk iphonesimulator