10
10
fail-fast : false
11
11
max-parallel : 4
12
12
matrix :
13
- os : [ubuntu-20.04 , macos-13]
13
+ os : [ubuntu-latest , macos-13]
14
14
15
15
steps :
16
16
# compile and prepare env
@@ -25,13 +25,12 @@ jobs:
25
25
uses : actions/setup-dotnet@v3
26
26
with :
27
27
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
30
30
with :
31
- python-version : ' 3.7.7'
32
- architecture : ' x64'
31
+ python-version : ' 3.11'
33
32
- name : Install Python Dependencies
34
- if : (matrix.os == 'ubuntu-20.04 ')
33
+ if : (matrix.os == 'ubuntu-latest ')
35
34
run : |
36
35
sudo -H apt-get update -y
37
36
sudo -H apt-get install -y python3-setuptools python3-pygments libbluetooth-dev
81
80
env :
82
81
BRAINFLOW_VERSION : ${{ steps.version.outputs.version }}
83
82
- name : Compile BrainFlow Ubuntu
84
- if : (matrix.os == 'ubuntu-20.04 ')
83
+ if : (matrix.os == 'ubuntu-latest ')
85
84
run : |
86
85
mkdir $GITHUB_WORKSPACE/build
87
86
cd $GITHUB_WORKSPACE/build
92
91
BRAINFLOW_VERSION : ${{ steps.version.outputs.version }}
93
92
- name : Compile BrainFlow in ManyLinux
94
93
# bindings in production have to use libraries compiled inside this image!
95
- if : (matrix.os == 'ubuntu-20.04 ')
94
+ if : (matrix.os == 'ubuntu-latest ')
96
95
run : |
97
96
docker pull dockcross/manylinux_2_28-x64:20240418-88c04a4
98
97
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:
176
175
LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
177
176
DYLD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
178
177
- name : Synthetic C# Test Ubuntu
179
- if : (matrix.os == 'ubuntu-20.04 ')
178
+ if : (matrix.os == 'ubuntu-latest ')
180
179
run : |
181
180
cd $GITHUB_WORKSPACE/csharp_package/brainflow/examples/brainflow_get_data/bin/Release/net7.0
182
181
./brainflow_get_data --board-id -1
@@ -185,7 +184,7 @@ jobs:
185
184
LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
186
185
DYLD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
187
186
- name : EEG Metrics C# Test Ubuntu
188
- if : (matrix.os == 'ubuntu-20.04 ')
187
+ if : (matrix.os == 'ubuntu-latest ')
189
188
run : |
190
189
cd $GITHUB_WORKSPACE/csharp_package/brainflow/examples/eeg_metrics/bin/Release/net7.0
191
190
./eeg_metrics --board-id -1
@@ -364,7 +363,7 @@ jobs:
364
363
env :
365
364
LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
366
365
- name : EEG Metrics Cpp Dyn Lib
367
- if : (matrix.os == 'ubuntu-20.04 ')
366
+ if : (matrix.os == 'ubuntu-latest ')
368
367
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
369
368
env :
370
369
LD_LIBRARY_PATH : ${{ github.workspace }}/installed/lib
@@ -404,9 +403,9 @@ jobs:
404
403
npm run bandpower_all
405
404
# deploy started
406
405
- 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
408
407
- 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' }}
410
409
run : |
411
410
aws s3 cp $GITHUB_WORKSPACE/installed_docker/lib/ s3://brainflow/$GITHUB_SHA/linux --recursive
412
411
env :
0 commit comments