Skip to content

Commit

Permalink
ci(ios): switch to iOS nightlies [skip ci] (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Nov 9, 2022
1 parent 3887730 commit c614aa0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ jobs:
- name: Set up react-native@nightly
if: ${{ github.event_name == 'schedule' }}
run: |
# `nightly` currently doesn't build due to use of version numbers that
# are incompatible with CocoaPods. See
# https://github.com/facebook/react-native/issues/30036 and
# https://github.com/microsoft/react-native-macos/issues/620 for more
# details.
npm run set-react-version -- main
npm run set-react-version -- nightly
rm example/ios/Podfile.lock
- name: Install npm dependencies
uses: ./.github/actions/yarn
Expand Down
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.gradle/
.idea/
.vs/
.xcode.env
Pods/
build/
dist/
Expand Down
5 changes: 5 additions & 0 deletions ios/test_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ def make_project!(xcodeproj, project_root, target_platform, options)
end

# Note the location of Node so we can use it later in script phases
File.open(File.join(project_root, '.xcode.env'), 'w') do |f|
node_bin = `which node`
node_bin.strip!
f.write("export NODE_BINARY=#{node_bin}\n")
end
File.open(File.join(destination, '.env'), 'w') do |f|
node_bin = `dirname $(which node)`
node_bin.strip!
Expand Down

0 comments on commit c614aa0

Please sign in to comment.