Skip to content

Commit

Permalink
fix ios build on CI (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokin0andrey authored Feb 14, 2024
1 parent 06422f0 commit 0a4aebf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
os: [macos-13]
node-version: [18.18.0]
ruby-version: [3.2]
ruby-version: [2.7]
xcode: [15.0.1]

runs-on: ${{ matrix.os }}
Expand All @@ -32,16 +32,25 @@ jobs:
max_attempts: 3
command: yarn

- name: Install pods dependencies
run: yarn pods

- name: Set up Ruby and Gemfile dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
working-directory: './packages/mobile'

- name: Cache Pods directory
uses: actions/cache@v3
with:
path: ./packages/mobile/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install pods dependencies
working-directory: './packages/mobile/ios'
run: bundle exec pod install

- name: Decode signing certificate into a file
working-directory: './packages/mobile/ios'
env:
Expand Down Expand Up @@ -83,7 +92,7 @@ jobs:
matrix:
os: [macos-13]
node-version: [18.18.0]
ruby-version: [3.2]
ruby-version: [2.7]
java-version: [11.0.12]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -159,7 +168,7 @@ jobs:
matrix:
os: [macos-13]
node-version: [18.18.0]
ruby-version: [3.2]
ruby-version: [2.7]
java-version: [11.0.12]

runs-on: ${{ matrix.os }}
Expand Down
12 changes: 2 additions & 10 deletions packages/mobile/ios/ton_keeper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1409,11 +1409,7 @@
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
OTHER_LDFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
};
Expand Down Expand Up @@ -1478,11 +1474,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
OTHER_LDFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down

0 comments on commit 0a4aebf

Please sign in to comment.