Skip to content

Commit 528ef7b

Browse files
committed
clear nix linker flags
1 parent 2bfe2e0 commit 528ef7b

6 files changed

Lines changed: 51 additions & 11 deletions

File tree

.flox/env/manifest.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ci-e2e-nightly.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ jobs:
3333
device-target: "ios-latest"
3434
steps:
3535
- uses: actions/checkout@v4
36+
- name: Yarn cache (E2E)
37+
uses: actions/cache@v4
38+
with:
39+
path: |
40+
~/.cache/yarn
41+
examples/E2E/.yarn/cache
42+
key: e2e-yarn-${{ runner.os }}-${{ hashFiles('examples/E2E/yarn.lock') }}
43+
restore-keys: |
44+
e2e-yarn-${{ runner.os }}-
45+
- name: CocoaPods cache (E2E)
46+
uses: actions/cache@v4
47+
with:
48+
path: |
49+
~/Library/Caches/CocoaPods
50+
examples/E2E/ios/Pods
51+
key: e2e-pods-${{ runner.os }}-${{ hashFiles('examples/E2E/ios/Podfile.lock') }}
52+
restore-keys: |
53+
e2e-pods-${{ runner.os }}-
3654
- name: Aggressive disk cleanup (macOS)
3755
run: |
3856
sudo rm -rf /usr/share/dotnet

.github/workflows/ci-e2e-optional.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ jobs:
3636
device-target: "ios-latest"
3737
steps:
3838
- uses: actions/checkout@v4
39+
- name: Yarn cache (E2E)
40+
uses: actions/cache@v4
41+
with:
42+
path: |
43+
~/.cache/yarn
44+
examples/E2E/.yarn/cache
45+
key: e2e-yarn-${{ runner.os }}-${{ hashFiles('examples/E2E/yarn.lock') }}
46+
restore-keys: |
47+
e2e-yarn-${{ runner.os }}-
48+
- name: CocoaPods cache (E2E)
49+
uses: actions/cache@v4
50+
with:
51+
path: |
52+
~/Library/Caches/CocoaPods
53+
examples/E2E/ios/Pods
54+
key: e2e-pods-${{ runner.os }}-${{ hashFiles('examples/E2E/ios/Podfile.lock') }}
55+
restore-keys: |
56+
e2e-pods-${{ runner.os }}-
3957
- name: Aggressive disk cleanup (macOS)
4058
run: |
4159
sudo rm -rf /usr/share/dotnet

env/ios/.flox/env/manifest.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

env/ios/.flox/env/manifest.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ IOS_SIM_LATEST_DEVICE = "iPhone 17"
1313
[hook]
1414
on-activate = '''
1515
set -euo pipefail
16+
17+
# Prefer system toolchains for iOS builds; avoid Nix C toolchain flags leaking into xcodebuild.
18+
unset NIX_CFLAGS_COMPILE NIX_LDFLAGS NIX_CFLAGS_LINK LIBRARY_PATH
19+
1620
project_root="${PROJECT_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
1721
if [ ! -d "$project_root/env/ios" ]; then
1822
project_root="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/../../../../.." && pwd)"

examples/E2E/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"lint": "eslint .",
1010
"start": "react-native start",
1111
"build:android": "yarn detox build --configuration android.emu.release",
12-
"test:android": "yarn detox test --configuration android.emu.release",
12+
"test:android": "yarn detox test --configuration android.emu.release --reuse",
1313
"build:ios": "yarn detox build --configuration ios.sim.release",
14-
"test:ios": "yarn detox test --configuration ios.sim.release",
14+
"test:ios": "yarn detox test --configuration ios.sim.release --reuse",
1515
"start:e2e": "yarn start",
1616
"android:deeplink": "adb shell am start -a android.intent.action.VIEW -d \"segmentreactnative://hello\" com.example.segmentanalyticsreactnative",
1717
"ios:deeplink": "xcrun simctl openurl booted segmentreactnative://hello",

0 commit comments

Comments
 (0)