Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: Run unit tests
run: yarn test --maxWorkers=2 --coverage

- name: Run fusionml C++ tests
run: |
sudo apt-get update
sudo apt-get install -y g++ zlib1g-dev
yarn test:fusion

build-library:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -87,7 +93,16 @@ jobs:
- name: Finalize Android SDK
if: env.turbo_cache_hit != 1
run: |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
test -n "$ANDROID_HOME"
echo "sdk.dir=$ANDROID_HOME" > example/android/local.properties
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null
# RN 0.83 pins NDK 27.1; install it here so Gradle does not download a bad zip
for attempt in 1 2 3; do
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --install "ndk;27.1.12297006" && break
echo "NDK install attempt ${attempt} failed; retrying..."
sleep $((attempt * 8))
done
test -d "$ANDROID_HOME/ndk/27.1.12297006"

- name: Cache Gradle
if: env.turbo_cache_hit != 1
Expand All @@ -107,9 +122,10 @@ jobs:
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"

build-ios:
runs-on: macos-latest
# macos-latest is Xcode 26-only; RN 0.83 still builds with Xcode 16.x
runs-on: macos-15
env:
XCODE_VERSION: 16.2
XCODE_VERSION: '16.4'
TURBO_CACHE_DIR: .turbo/ios
steps:
- name: Checkout
Expand Down Expand Up @@ -146,7 +162,7 @@ jobs:
cd example
bundle install
bundle exec pod repo update --verbose
bundle exec pod install --project-directory=ios
bundle exec pod update --project-directory=ios

- name: Build example for iOS
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.19.0
v20.19.4
3 changes: 2 additions & 1 deletion Ahrs.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Pod::Spec.new do |s|
"fusionml/src/uNavINS.{h,cpp}",
"fusionml/src/AltitudeCalculator.{h,cpp}",
"fusionml/src/FlightPhaseDetector.{h,cpp}",
"fusionml/src/JsonRecorder.{h,cpp}"
"fusionml/src/JsonRecorder.{h,cpp}",
"fusionml/src/XYZgeomag.hpp"

s.private_header_files = "ios/**/*.h",
"fusionml/src/uNavINS.h",
Expand Down
1 change: 0 additions & 1 deletion android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ add_library(ahrs SHARED
../fusionml/src/AltitudeCalculator.cpp
../fusionml/src/FlightPhaseDetector.cpp
../fusionml/src/JsonRecorder.cpp
"${RN_DIR}/ReactCommon/jsi/jsi/jsi.cpp"
)

# Specify include directories
Expand Down
Loading
Loading