1010 fail-fast : false
1111 max-parallel : 4
1212 matrix :
13- os : [ubuntu-20.04 , macos-13]
13+ os : [ubuntu-latest , macos-13]
1414
1515 steps :
1616 # compile and prepare env
@@ -25,13 +25,12 @@ jobs:
2525 uses : actions/setup-dotnet@v3
2626 with :
2727 dotnet-version : ' 7.0.x'
28- - name : Install Python 3.7
29- uses : actions/setup-python@v3
28+ - name : Install Python 3.10
29+ uses : actions/setup-python@v5
3030 with :
31- python-version : ' 3.7.7'
32- architecture : ' x64'
31+ python-version : ' 3.11'
3332 - name : Install Python Dependencies
34- if : (matrix.os == 'ubuntu-20.04 ')
33+ if : (matrix.os == 'ubuntu-latest ')
3534 run : |
3635 sudo -H apt-get update -y
3736 sudo -H apt-get install -y python3-setuptools python3-pygments libbluetooth-dev
8180 env :
8281 BRAINFLOW_VERSION : ${{ steps.version.outputs.version }}
8382 - name : Compile BrainFlow Ubuntu
84- if : (matrix.os == 'ubuntu-20.04 ')
83+ if : (matrix.os == 'ubuntu-latest ')
8584 run : |
8685 mkdir $GITHUB_WORKSPACE/build
8786 cd $GITHUB_WORKSPACE/build
9291 BRAINFLOW_VERSION : ${{ steps.version.outputs.version }}
9392 - name : Compile BrainFlow in ManyLinux
9493 # bindings in production have to use libraries compiled inside this image!
95- if : (matrix.os == 'ubuntu-20.04 ')
94+ if : (matrix.os == 'ubuntu-latest ')
9695 run : |
9796 docker pull dockcross/manylinux_2_28-x64:20240418-88c04a4
9897 docker run -e BRAINFLOW_VERSION=$BRAINFLOW_VERSION -e GITHUB_WORKSPACE=$GITHUB_WORKSPACE -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE dockcross/manylinux_2_28-x64:20240418-88c04a4 /bin/bash -c "yum install -y bluez-libs-devel dbus-devel && /opt/python/cp36-cp36m/bin/pip3.6 install cmake==3.21.4 && cd $GITHUB_WORKSPACE && mkdir build_docker && cd build_docker && /opt/_internal/cpython-3.6.15/bin/cmake -DBRAINFLOW_VERSION=$BRAINFLOW_VERSION -DBUILD_ONNX=ON -DBUILD_BLE=ON -DBUILD_BLUETOOTH=ON -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/installed_docker -DCMAKE_BUILD_TYPE=Release .. && make && make install"
@@ -176,7 +175,7 @@ jobs:
176175 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
177176 DYLD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
178177 - name : Synthetic C# Test Ubuntu
179- if : (matrix.os == 'ubuntu-20.04 ')
178+ if : (matrix.os == 'ubuntu-latest ')
180179 run : |
181180 cd $GITHUB_WORKSPACE/csharp_package/brainflow/examples/brainflow_get_data/bin/Release/net7.0
182181 ./brainflow_get_data --board-id -1
@@ -185,7 +184,7 @@ jobs:
185184 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
186185 DYLD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
187186 - name : EEG Metrics C# Test Ubuntu
188- if : (matrix.os == 'ubuntu-20.04 ')
187+ if : (matrix.os == 'ubuntu-latest ')
189188 run : |
190189 cd $GITHUB_WORKSPACE/csharp_package/brainflow/examples/eeg_metrics/bin/Release/net7.0
191190 ./eeg_metrics --board-id -1
@@ -364,7 +363,7 @@ jobs:
364363 env :
365364 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
366365 - name : EEG Metrics Cpp Dyn Lib
367- if : (matrix.os == 'ubuntu-20.04 ')
366+ if : (matrix.os == 'ubuntu-latest ')
368367 run : $GITHUB_WORKSPACE/cpp_package/examples/ml/build/eeg_metrics_ci --board-id -1 --metric 2 --classifier 1 --model-file $GITHUB_WORKSPACE/cpp_package/examples/ml/build/libdyn_lib_test.so
369368 env :
370369 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
@@ -404,9 +403,9 @@ jobs:
404403 npm run bandpower_all
405404 # deploy started
406405 - name : Install AWS CLI
407- run : sudo -H python3 -m pip install awscli==1.21.10
406+ run : sudo -H python3 -m pip install awscli
408407 - name : Push Libraries Linux Docker
409- if : ${{ github.event_name == 'push' && matrix.os == 'ubuntu-20.04 ' && github.repository == 'brainflow-dev/brainflow' }}
408+ if : ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest ' && github.repository == 'brainflow-dev/brainflow' }}
410409 run : |
411410 aws s3 cp $GITHUB_WORKSPACE/installed_docker/lib/ s3://brainflow/$GITHUB_SHA/linux --recursive
412411 env :
0 commit comments