Skip to content

Commit 580f693

Browse files
authored
update ubuntu image in github actions (#766)
* update ubuntu runners to latest to fix CI issues with deprecation Signed-off-by: Andrey Parfenov <[email protected]>
1 parent 44451d7 commit 580f693

File tree

4 files changed

+29
-32
lines changed

4 files changed

+29
-32
lines changed

.github/workflows/run_libftdi.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ jobs:
1010
fail-fast: false
1111
max-parallel: 4
1212
matrix:
13-
os: [ubuntu-20.04]
13+
os: [ubuntu-latest]
1414

1515
steps:
1616
# compile and prepare env
1717
- name: Clone Repository
1818
uses: actions/checkout@v2
19-
- name: Install Python 3.7
20-
uses: actions/setup-python@v3
19+
- name: Install Python 3.10
20+
uses: actions/setup-python@v5
2121
with:
22-
python-version: '3.7.7'
23-
architecture: 'x64'
22+
python-version: '3.11'
2423
- name: Install Ubuntu Dependencies
25-
if: (matrix.os == 'ubuntu-20.04')
24+
if: (matrix.os == 'ubuntu-latest')
2625
run: |
2726
sudo -H apt-get update -y
2827
sudo -H apt-get install -y python3-setuptools python3-pygments libftdi1-dev

.github/workflows/run_matlab.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55

66
jobs:
77
RunMatlabLinux:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-22.04
99

1010
steps:
1111
- name: Check out repository
@@ -22,28 +22,28 @@ jobs:
2222
make
2323
make install
2424
- name: Set up Matlab
25-
uses: matlab-actions/setup-matlab@v1
25+
uses: matlab-actions/setup-matlab@v2
2626
- name: Run Signal Processing Test
27-
uses: matlab-actions/run-command@v1
27+
uses: matlab-actions/run-command@v2
2828
with:
2929
command: addpath('matlab_package/brainflow'),addpath('matlab_package/brainflow/examples'),addpath('matlab_package/brainflow/inc'),addpath('matlab_package/brainflow/lib'),SignalFiltering
3030
- name: Run Transforms Test
31-
uses: matlab-actions/run-command@v1
31+
uses: matlab-actions/run-command@v2
3232
with:
3333
command: addpath('matlab_package/brainflow'),addpath('matlab_package/brainflow/examples'),addpath('matlab_package/brainflow/inc'),addpath('matlab_package/brainflow/lib'),Transforms
3434
- name: Run EEG Mertrics Test
35-
uses: matlab-actions/run-command@v1
35+
uses: matlab-actions/run-command@v2
3636
with:
3737
command: addpath('matlab_package/brainflow'),addpath('matlab_package/brainflow/examples'),addpath('matlab_package/brainflow/inc'),addpath('matlab_package/brainflow/lib'),EEGMetrics
3838
- name: Run CSP Test
39-
uses: matlab-actions/run-command@v1
39+
uses: matlab-actions/run-command@v2
4040
with:
4141
command: addpath('matlab_package/brainflow'),addpath('matlab_package/brainflow/examples'),addpath('matlab_package/brainflow/inc'),addpath('matlab_package/brainflow/lib'),CSP
4242
- name: Run Spo2 Test
43-
uses: matlab-actions/run-command@v1
43+
uses: matlab-actions/run-command@v2
4444
with:
4545
command: addpath('matlab_package/brainflow'),addpath('matlab_package/brainflow/examples'),addpath('matlab_package/brainflow/inc'),addpath('matlab_package/brainflow/lib'),Spo2
4646
- name: Run ICA Test
47-
uses: matlab-actions/run-command@v1
47+
uses: matlab-actions/run-command@v2
4848
with:
4949
command: addpath('matlab_package/brainflow'),addpath('matlab_package/brainflow/examples'),addpath('matlab_package/brainflow/inc'),addpath('matlab_package/brainflow/lib'),ICA

.github/workflows/run_unix.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
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
@@ -81,7 +80,7 @@ jobs:
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
@@ -92,7 +91,7 @@ jobs:
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:

.github/workflows/valgrind.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
max-parallel: 4
1212
matrix:
13-
os: [ubuntu-20.04]
13+
os: [ubuntu-latest]
1414

1515
steps:
1616
# compile and prepare env
@@ -60,11 +60,10 @@ jobs:
6060
sudo -H apt-get install -y valgrind
6161
env:
6262
DEBIAN_FRONTEND: noninteractive
63-
- name: Install Python 3.7
64-
uses: actions/setup-python@v3
63+
- name: Install Python 3.10
64+
uses: actions/setup-python@v5
6565
with:
66-
python-version: '3.7.7'
67-
architecture: 'x64'
66+
python-version: '3.11'
6867
- name: Install Python Dependencies
6968
run: |
7069
sudo -H apt-get update -y

0 commit comments

Comments
 (0)