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
3131 python-version : ' 3.7.7'
3232 architecture : ' x64'
3333 - name : Install Python Dependencies
34- if : (matrix.os == 'ubuntu-20.04 ')
34+ if : (matrix.os == 'ubuntu-latest ')
3535 run : |
3636 sudo -H apt-get update -y
3737 sudo -H apt-get install -y python3-setuptools python3-pygments libbluetooth-dev
8181 env :
8282 BRAINFLOW_VERSION : ${{ steps.version.outputs.version }}
8383 - name : Compile BrainFlow Ubuntu
84- if : (matrix.os == 'ubuntu-20.04 ')
84+ if : (matrix.os == 'ubuntu-latest ')
8585 run : |
8686 mkdir $GITHUB_WORKSPACE/build
8787 cd $GITHUB_WORKSPACE/build
9292 BRAINFLOW_VERSION : ${{ steps.version.outputs.version }}
9393 - name : Compile BrainFlow in ManyLinux
9494 # bindings in production have to use libraries compiled inside this image!
95- if : (matrix.os == 'ubuntu-20.04 ')
95+ if : (matrix.os == 'ubuntu-latest ')
9696 run : |
9797 docker pull dockcross/manylinux_2_28-x64:20240418-88c04a4
9898 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 +176,7 @@ jobs:
176176 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
177177 DYLD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
178178 - name : Synthetic C# Test Ubuntu
179- if : (matrix.os == 'ubuntu-20.04 ')
179+ if : (matrix.os == 'ubuntu-latest ')
180180 run : |
181181 cd $GITHUB_WORKSPACE/csharp_package/brainflow/examples/brainflow_get_data/bin/Release/net7.0
182182 ./brainflow_get_data --board-id -1
@@ -185,7 +185,7 @@ jobs:
185185 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
186186 DYLD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
187187 - name : EEG Metrics C# Test Ubuntu
188- if : (matrix.os == 'ubuntu-20.04 ')
188+ if : (matrix.os == 'ubuntu-latest ')
189189 run : |
190190 cd $GITHUB_WORKSPACE/csharp_package/brainflow/examples/eeg_metrics/bin/Release/net7.0
191191 ./eeg_metrics --board-id -1
@@ -364,7 +364,7 @@ jobs:
364364 env :
365365 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
366366 - name : EEG Metrics Cpp Dyn Lib
367- if : (matrix.os == 'ubuntu-20.04 ')
367+ if : (matrix.os == 'ubuntu-latest ')
368368 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
369369 env :
370370 LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
@@ -406,7 +406,7 @@ jobs:
406406 - name : Install AWS CLI
407407 run : sudo -H python3 -m pip install awscli==1.21.10
408408 - name : Push Libraries Linux Docker
409- if : ${{ github.event_name == 'push' && matrix.os == 'ubuntu-20.04 ' && github.repository == 'brainflow-dev/brainflow' }}
409+ if : ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest ' && github.repository == 'brainflow-dev/brainflow' }}
410410 run : |
411411 aws s3 cp $GITHUB_WORKSPACE/installed_docker/lib/ s3://brainflow/$GITHUB_SHA/linux --recursive
412412 env :
0 commit comments