Skip to content

Commit

Permalink
BrainFlow 5.0.0 (#441)
Browse files Browse the repository at this point in the history
* BrainFlow 5.0.0, add support for onnx, better denoising and a few more breaking changes

Signed-off-by: Andrey Parfenov <[email protected]>
  • Loading branch information
Andrey1994 authored Jun 10, 2022
1 parent f9c08dd commit c24a8c4
Show file tree
Hide file tree
Showing 439 changed files with 28,674 additions and 58,311 deletions.
1 change: 1 addition & 0 deletions .clang-format-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ src/board_controller/muse/muse_bglib/cmd_def.cpp
src/board_controller/muse/muse_bglib/inc/cmd_def.h
# third party
third_party/*
third_party/onnxruntime/build/native/include/*
src/utils/bluetooth/macos_third_party/*
14 changes: 7 additions & 7 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Install Python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.7.7'
architecture: 'x64'
Expand All @@ -57,13 +57,13 @@ jobs:
make install
- name: Setup Python Package
run: |
cd $GITHUB_WORKSPACE/python-package
cd $GITHUB_WORKSPACE/python_package
sudo -H python3 -m pip install -U .
- name: Setup Java package
run: |
cd $GITHUB_WORKSPACE/java-package/brainflow
cd $GITHUB_WORKSPACE/java_package/brainflow
mvn package
cp -av $GITHUB_WORKSPACE/java-package/brainflow/target/classes/brainflow/. $GITHUB_WORKSPACE/java-package/brainflow/target/classes/
cp -av $GITHUB_WORKSPACE/java-package/brainflow/target/classes/brainflow/. $GITHUB_WORKSPACE/java-package/brainflow/target/classes/
cp -av $GITHUB_WORKSPACE/java_package/brainflow/target/classes/brainflow/. $GITHUB_WORKSPACE/java_package/brainflow/target/classes/
cp -av $GITHUB_WORKSPACE/java_package/brainflow/target/classes/brainflow/. $GITHUB_WORKSPACE/java_package/brainflow/target/classes/
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
- name: Run Cppcheck
run: cppcheck --std=c++11 -ithird_party/spdlog -ithird_party/libsvm -ithird_party/SimpleBLE -ithird_party/SimpleDBus -ithird_party/SimpleBluez --error-exitcode=1 --xml --xml-version=2 --force src cpp-package third_party 2>cppcheck_res.xml
run: cppcheck --std=c++11 -ithird_party/spdlog -ithird_party/libsvm -ithird_party/SimpleBLE -ithird_party/SimpleDBus -ithird_party/SimpleBluez --error-exitcode=1 --xml --xml-version=2 --force src cpp_package third_party 2>cppcheck_res.xml
- name: Generate Report
if: ${{ failure() }}
run: cppcheck-htmlreport --title=BrainFlow --file=cppcheck_res.xml --report-dir=report
Expand Down
98 changes: 49 additions & 49 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Prepare Java Package
run: |
cd $env:GITHUB_WORKSPACE\java-package\brainflow
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources
cd $env:GITHUB_WORKSPACE\java_package\brainflow
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources
(gc .\pom.xml).replace('0.0.1-SNAPSHOT', $env:VERSION) | Out-File -encoding ASCII pom.xml
type pom.xml
(gc .\settings.xml).replace('USER',$env:PUBLISH_USER) | Out-File -encoding ASCII settings.xml
(gc .\settings.xml).replace('TOKEN',$env:PUBLISH_TOKEN) | Out-File -encoding ASCII settings.xml
mvn package
aws s3 cp $env:GITHUB_WORKSPACE\java-package\brainflow\target\ s3://brainflow/$env:GITHUB_SHA/jars --recursive
aws s3 cp $env:GITHUB_WORKSPACE\java_package\brainflow\target\ s3://brainflow/$env:GITHUB_SHA/jars --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -124,67 +124,67 @@ jobs:
VERSION: ${{ github.event.inputs.version }}
- name: Prepare Python Package
run: |
cd $env:GITHUB_WORKSPACE\python-package\
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\python-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\python-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\python-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\python-package\brainflow\lib" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\python-package\brainflow\lib
cd $env:GITHUB_WORKSPACE\python_package\
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\python_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\python_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\python_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\python_package\brainflow\lib" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\python_package\brainflow\lib
(gc .\setup.py).replace('0.0.1', $env:VERSION) | Out-File -encoding ASCII setup.py
type setup.py
python setup.py sdist bdist_wheel
aws s3 cp $env:GITHUB_WORKSPACE\python-package\ s3://brainflow/$env:GITHUB_SHA/whl --recursive
aws s3 cp $env:GITHUB_WORKSPACE\python_package\ s3://brainflow/$env:GITHUB_SHA/whl --recursive
env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
VERSION: ${{ github.event.inputs.version }}
- name: Prepare Rust Package
run: |
cd $env:GITHUB_WORKSPACE\rust-package\brainflow
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\rust-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\rust-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\rust-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\rust-package\brainflow\lib" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\rust-package\brainflow\lib
cd $env:GITHUB_WORKSPACE\rust_package\brainflow
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\rust_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\rust_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\rust_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\rust_package\brainflow\lib" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\rust_package\brainflow\lib
(gc .\Cargo.toml).replace('0.0.1', $env:VERSION) | Out-File -encoding ASCII Cargo.toml
type Cargo.toml
cargo login $env:CARGO_TOKEN
# cargo publish --dry-run --allow-dirty
# aws s3 cp $env:GITHUB_WORKSPACE\rust-package\brainflow s3://brainflow/$env:GITHUB_SHA/rust --recursive
# aws s3 cp $env:GITHUB_WORKSPACE\rust_package\brainflow s3://brainflow/$env:GITHUB_SHA/rust --recursive
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
VERSION: ${{ github.event.inputs.version }}
- name: Prepare Nuget Package
run: |
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Get-ChildItem -Path "$env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib" *.a | foreach { Remove-Item -Path $_.FullName }
Get-ChildItem -Path "$env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib" *.lib | foreach { Remove-Item -Path $_.FullName }
ls $env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow\lib
cd $env:GITHUB_WORKSPACE\csharp-package\brainflow
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib" -Recurse -Force -Filter *.*
Get-ChildItem -Path "$env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib" *.a | foreach { Remove-Item -Path $_.FullName }
Get-ChildItem -Path "$env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib" *.lib | foreach { Remove-Item -Path $_.FullName }
ls $env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow\lib
cd $env:GITHUB_WORKSPACE\csharp_package\brainflow
msbuild brainflow.sln /p:Configuration=Release /p:Platform="Any CPU"
cd $env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow
cd $env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow
(gc .\brainflow.nuspec).replace('0.0.1', $env:VERSION) | Out-File -encoding ASCII brainflow.nuspec
type brainflow.nuspec
nuget pack brainflow.csproj -properties Configuration=Release -IncludeReferencedProjects
aws s3 cp $env:GITHUB_WORKSPACE\csharp-package\brainflow\brainflow s3://brainflow/$env:GITHUB_SHA/nuget --recursive
aws s3 cp $env:GITHUB_WORKSPACE\csharp_package\brainflow\brainflow s3://brainflow/$env:GITHUB_SHA/nuget --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
VERSION: ${{ github.event.inputs.version }}
- name: Prepare Matlab Package
run: |
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\matlab-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\matlab-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\matlab-package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\matlab-package\brainflow\lib" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\matlab-package\brainflow\lib
Compress-7Zip -Path $env:GITHUB_WORKSPACE\matlab-package -ArchiveFileName $env:GITHUB_WORKSPACE\matlab_package.tar -Format Tar
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\matlab_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\matlab_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\matlab_package\brainflow\lib" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\matlab_package\brainflow\lib" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\matlab_package\brainflow\lib
Compress-7Zip -Path $env:GITHUB_WORKSPACE\matlab_package -ArchiveFileName $env:GITHUB_WORKSPACE\matlab_package.tar -Format Tar
aws s3 cp $env:GITHUB_WORKSPACE\matlab_package.tar s3://brainflow/$env:GITHUB_SHA/matlab_package.tar
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -194,11 +194,11 @@ jobs:
- name: Publish Packages
if: github.event.inputs.publish == 'true'
run: |
cd $env:GITHUB_WORKSPACE\java-package\brainflow
mvn -s $env:GITHUB_WORKSPACE\java-package\brainflow\settings.xml deploy -Dregistry=https://maven.pkg.github.com/brainflow-dev -Dtoken=$env:PUBLISH_TOKEN
cd $env:GITHUB_WORKSPACE\python-package
cd $env:GITHUB_WORKSPACE\java_package\brainflow
mvn -s $env:GITHUB_WORKSPACE\java_package\brainflow\settings.xml deploy -Dregistry=https://maven.pkg.github.com/brainflow-dev -Dtoken=$env:PUBLISH_TOKEN
cd $env:GITHUB_WORKSPACE\python_package
twine upload --skip-existing dist/*.whl --user Andrey1994 --password $env:PYPI_PASSWORD
cd $env:GITHUB_WORKSPACE\rust-package\brainflow
cd $env:GITHUB_WORKSPACE\rust_package\brainflow
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand All @@ -207,19 +207,19 @@ jobs:
# create java package for java 8, will be removed
- name: Java 8 package
run: |
cd $env:GITHUB_WORKSPACE\java-package\brainflow
cd $env:GITHUB_WORKSPACE\java_package\brainflow
(gc .\pom.xml).replace('<source>11</source>', '<source>1.8</source>') | Out-File -encoding ASCII pom.xml
(gc .\pom.xml).replace('<target>11</target>', '<target>1.8</target>') | Out-File -encoding ASCII pom.xml
type pom.xml
mvn clean
Remove-Item "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\java\module-info.java"
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\java-package\brainflow\src\main\resources
Remove-Item "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\java\module-info.java"
Copy-Item "$env:GITHUB_WORKSPACE\linux\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\macos\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win64\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
Copy-Item "$env:GITHUB_WORKSPACE\win32\*" -Destination "$env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources" -Recurse -Force -Filter *.*
ls $env:GITHUB_WORKSPACE\java_package\brainflow\src\main\resources
mvn package
aws s3 cp $env:GITHUB_WORKSPACE\java-package\brainflow\target\ s3://brainflow/$env:GITHUB_SHA/jars_java8 --recursive
aws s3 cp $env:GITHUB_WORKSPACE\java_package\brainflow\target\ s3://brainflow/$env:GITHUB_SHA/jars_java8 --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy_cpp_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
mkdir %GITHUB_WORKSPACE%\%BUILD%_%RUNTIME%_%ARCH%
cd %GITHUB_WORKSPACE%\%BUILD%_%RUNTIME%_%ARCH%
cmake -DBUILD_BLUETOOTH=ON -DBUILD_OYMOTION_SDK=ON -DWARNINGS_AS_ERRORS=ON -G "Visual Studio 16 2019" -A %ARCH% -DCMAKE_SYSTEM_VERSION=8.1 -DMSVC_RUNTIME=%RUNTIME% -DCMAKE_INSTALL_PREFIX=..\artifacts\%ARCH%_%BUILD%_%RUNTIME%\ ..
cmake -DBUILD_BLUETOOTH=ON -DBUILD_ONNX=ON -DBUILD_OYMOTION_SDK=ON -DWARNINGS_AS_ERRORS=ON -G "Visual Studio 16 2019" -A %ARCH% -DCMAKE_SYSTEM_VERSION=8.1 -DMSVC_RUNTIME=%RUNTIME% -DCMAKE_INSTALL_PREFIX=..\artifacts\%ARCH%_%BUILD%_%RUNTIME%\ ..
cmake --build . --target install --config %BUILD% -j 2 --parallel 2
shell: cmd
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_julia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
echo ${{ github.event.inputs.publish }}
- name: Change Julia Files
run: |
cd $env:GITHUB_WORKSPACE\julia-package\brainflow\src
cd $env:GITHUB_WORKSPACE\julia_package\brainflow\src
(gc .\brainflow_url.jl) -replace '[0-9]+.[0-9]+.[0-9]+', $env:VERSION | Out-File -encoding ASCII brainflow_url.jl
cd $env:GITHUB_WORKSPACE\julia-package\brainflow
cd $env:GITHUB_WORKSPACE\julia_package\brainflow
(gc .\Artifacts.toml) -replace '[0-9]+.[0-9]+.[0-9]+', $env:VERSION | Out-File -encoding ASCII Artifacts.toml
(gc .\Project.toml) -replace 'version = "[0-9]+.[0-9]+.[0-9]+"', "version = `"$env:VERSION`"" | Out-File -encoding ASCII Project.toml
julia generate_brainflow_artifact.jl
git diff $env:GITHUB_WORKSPACE\julia-package > $env:GITHUB_WORKSPACE\julia.patch
git diff $env:GITHUB_WORKSPACE\julia_package > $env:GITHUB_WORKSPACE\julia.patch
env:
VERSION: ${{ github.event.inputs.version }}
- name: Upload Julia Diff
Expand All @@ -58,7 +58,7 @@ jobs:
if: github.event.inputs.publish == 'true'
uses: EndBug/add-and-commit@v6
with:
add: '-u julia-package'
add: '-u julia_package'
author_name: Andrey1994
author_email: [email protected]
message: 'Bump Julia Version'
Expand Down
Loading

0 comments on commit c24a8c4

Please sign in to comment.