Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift bindings #716

Closed
Closed
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e2d0f24
Swift Bindings with updated cmake files and standalone executable CI …
ScottThomasMiller Apr 18, 2024
00ab3b3
trying to fix build error from SPM
ScottThomasMiller Apr 18, 2024
d376386
removed Package.resolved and xcode clean commands
ScottThomasMiller Apr 18, 2024
6f751b3
removed BrainFlowCITests.swift from all targets
ScottThomasMiller Apr 18, 2024
b81e571
removed all references to BrainFlowTests
ScottThomasMiller Apr 18, 2024
ec5faa5
set exact version of swift-argument-parser
ScottThomasMiller Apr 19, 2024
c9e699b
set exact version of swift-argument-parser to 1.2.0
ScottThomasMiller Apr 19, 2024
1f25c6a
using destination OS X
ScottThomasMiller Apr 19, 2024
0e47557
platform=macOS, arch=x86_64
ScottThomasMiller Apr 19, 2024
26bd97e
removed space from destination parameter
ScottThomasMiller Apr 19, 2024
19960d4
removed code signing
ScottThomasMiller Apr 19, 2024
d94cce8
added Frameworks directory and updated gitignore
ScottThomasMiller Apr 19, 2024
6bdb626
added cp commands for the Frameworks subdirectory
ScottThomasMiller Apr 19, 2024
f255cf2
added arm64 and updated simpleble make file
ScottThomasMiller Apr 19, 2024
cd2921a
removed arm64 destination
ScottThomasMiller Apr 19, 2024
ab3ed47
using xcodebuild install
ScottThomasMiller Apr 20, 2024
dfbade1
embed without signing and copy-on-install
ScottThomasMiller Apr 20, 2024
4e646ad
pared-down yml for expedited troubleshooting
ScottThomasMiller Apr 20, 2024
41371de
added troubleshooting ls and otool commands
ScottThomasMiller Apr 20, 2024
25002c3
added troubleshooting ls and otool commands take II
ScottThomasMiller Apr 20, 2024
e29e21a
unchecked copy on install
ScottThomasMiller Apr 20, 2024
7c1a543
troubleshooting image not found error
ScottThomasMiller Apr 20, 2024
192b959
added runpath search paths
ScottThomasMiller Apr 20, 2024
a3d1137
changed embedding location to executables
ScottThomasMiller Apr 20, 2024
950fe6f
commented out ls commands
ScottThomasMiller Apr 20, 2024
b350a25
add ls install
ScottThomasMiller Apr 20, 2024
9caaefb
disabled library validation
ScottThomasMiller Apr 20, 2024
56884af
disable library validation for all
ScottThomasMiller Apr 20, 2024
7b46896
re-added build commands
ScottThomasMiller Apr 20, 2024
3f05e05
reverted run unix to confirm all other CI is OK
ScottThomasMiller Apr 21, 2024
fbaaa7c
really reverted it this time
ScottThomasMiller Apr 21, 2024
a2c526a
known good Swift CI
ScottThomasMiller Apr 21, 2024
9982ba8
cleanup for initial PR
ScottThomasMiller May 3, 2024
322c29c
Merge branch 'master' into swift-bindings
Andrey1994 May 12, 2024
ba868be
finished cleanup
ScottThomasMiller May 12, 2024
42ceaf4
PR cleanup third pass
ScottThomasMiller May 13, 2024
8d8050f
fixed linker error
ScottThomasMiller May 14, 2024
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
101 changes: 100 additions & 1 deletion .github/workflows/run_unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,109 @@ jobs:
sudo -H python3 -m pip install -U .
- name: Install Python test Dependencies
run: sudo -H python3 -m pip install -r $GITHUB_WORKSPACE/python_package/examples/tests/requirements.txt

# build Swift tests:
- name: build band_power Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme band_power
- name: build band_power_all Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme band_power_all
- name: build brainflow_get_data Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme brainflow_get_data
- name: build denoising Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme denoising
- name: build downsampling Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme downsampling
- name: build eeg_metrics Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme eeg_metrics
- name: build ica Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme ica
- name: build markers Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme markers
- name: build read_write_file Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme read_write_file
- name: build signal_filtering Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme signal_filtering
- name: build transforms Swift
if: (matrix.os == 'macos-11.0')
run: |
cd $GITHUB_WORKSPACE/swift_package/BrainFlowCI
xcodebuild install -project BrainFlowCI.xcodeproj -destination 'platform=macOS,arch=x86_64' DSTROOT=. INSTALL_PATH=install -scheme transforms
# start testing
- name: Run unit tests
run: $GITHUB_WORKSPACE/build/tests/brainflow_tests
- name: band_power Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/band_power
- name: band_power_all Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/band_power_all
- name: brainflow_get_data Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/brainflow_get_data
- name: denoising Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/denoising
- name: downsampling Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/downsampling
- name: eeg_metrics Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/eeg_metrics
- name: ica Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/ica
- name: markers Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/markers
- name: read_write_file Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/read_write_file
- name: signal_filtering Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/signal_filtering
- name: transforms Swift
if: (matrix.os == 'macos-11.0')
run: |
$GITHUB_WORKSPACE/swift_package/BrainFlowCI/install/transforms
- name: Synthetic C# Test MacOS
if: (matrix.os == 'macos-11.0')
run: |
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ java_package/brainflow/src/main/resources/
matlab_package/brainflow/inc/
matlab_package/brainflow/lib/
python_package/brainflow/lib/
swift_package/BrainFlow/lib/
rust_package/brainflow/lib/
rust_package/brainflow/inc/
src/ml/train/data/
Expand All @@ -379,4 +380,10 @@ Makefile
CMakeSettings.json
._.gitignore

build/
build/

# swift_package stuff:
*.xcuserdata*
xcuserdata
.DS_Store
*.dylib
Loading
Loading