Skip to content

Commit 36bc382

Browse files
committed
Finished push binary action
1 parent 46388b4 commit 36bc382

File tree

5 files changed

+40
-20
lines changed

5 files changed

+40
-20
lines changed

.github/workflows/publish_matlab_binaries.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
name: Run the Matlab tests
1+
name: Publish MATLAB binaries
22

3-
on: [pull_request]
3+
on:
4+
release:
5+
types: [published]
46

57
env:
68
BUILD_FOLDER: build
7-
EXAMPLES_FOLDER: examples
8-
9+
910
jobs:
1011
build:
1112
strategy:
1213
matrix:
1314
include:
14-
- os: ubuntu-22.04
15+
- os: ubuntu-latest
1516
label: linux-64
1617
prefix: /usr/share/miniconda3/envs/ezc3d
18+
- os: macos-latest
19+
label: osx-64
20+
prefix: /Users/runner/miniconda3/envs/ezc3d
21+
- os: windows-latest
22+
label: win-64
23+
prefix: C:\Miniconda3\envs\ezc3d
24+
- version: [R2021b, R2022a, R2022b, R2023a, R2023b, R2024a]
1725
name: ${{ matrix.label }}
1826
runs-on: ${{ matrix.os }}
1927
defaults:
@@ -47,6 +55,8 @@ jobs:
4755
4856
- name: Install MATLAB
4957
uses: matlab-actions/setup-matlab@v2
58+
with:
59+
release: ${{ matrix.version }}
5060

5161
- name: Build ezc3d
5262
run: |
@@ -57,17 +67,20 @@ jobs:
5767
CONDA_ENV_PATH=$CONDA/envs/ezc3d
5868
mkdir -p $MAIN_FOLDER/$BUILD_FOLDER
5969
cd $MAIN_FOLDER/$BUILD_FOLDER
60-
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_ENV_PATH -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -DBUILD_DOC=OFF -DBUILD_EXAMPLE=OFF -DUSE_MATRIX_FAST_ACCESSOR=OFF -DBINDER_MATLAB=ON -DMatlab_ezc3d_INSTALL_DIR=$HOME -DBINDER_PYTHON3=OFF ..
70+
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_ENV_PATH -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=ON -DBUILD_DOC=OFF -DBUILD_EXAMPLE=OFF -DUSE_MATRIX_FAST_ACCESSOR=OFF -DBINDER_MATLAB=ON -DMatlab_ezc3d_INSTALL_DIR=$HOME -DBINDER_PYTHON3=OFF ..
6171
make install -j${{ steps.cpu-cores.outputs.count }}
6272
cd $MAIN_FOLDER
6373
64-
- name: Run the Matlab binder tests
74+
- name: Build MATLAB archives
6575
run: |
66-
MAIN_FOLDER=`pwd`
67-
cd
68-
HOME=`pwd`
69-
cd $MAIN_FOLDER/test/matlab
70-
cp $HOME/ezc3d_matlab/* .
71-
matlab test_binder_matlab.m
72-
matlab test_binder_matlab_force_platform.m
73-
cd $MAIN_FOLDER
76+
zip -r ezc3d_matlab.zip $HOME/ezc3d_matlab
77+
78+
- name: Upload files to a GitHub release
79+
uses: xresloader/upload-to-github-release@v1
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
with:
83+
file: "ezc3d_matlab_${{ matrix.label }}_${{ matrix.version }}.zip"
84+
update_latest_release: true
85+
verbose: true
86+
overwrite: true

.github/workflows/run_codecoverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- os: ubuntu-20.04
14+
- os: ubuntu-latest
1515
label: linux-64
1616
prefix: /usr/share/miniconda3/envs/biorbd_eigen
1717
name: ${{ matrix.label }}

.github/workflows/run_matlab_tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- os: ubuntu-22.04
14+
- os: ubuntu-latest
1515
label: linux-64
1616
prefix: /usr/share/miniconda3/envs/ezc3d
17+
- os: macos-latest
18+
label: osx-64
19+
prefix: /Users/runner/miniconda3/envs/ezc3d
20+
- os: windows-latest
21+
label: win-64
22+
prefix: C:\Miniconda3\envs\ezc3d
23+
- version: [R2021b, R2022a, R2022b, R2023a, R2023b, R2024a]
1724
name: ${{ matrix.label }}
1825
runs-on: ${{ matrix.os }}
1926
defaults:
@@ -57,7 +64,7 @@ jobs:
5764
CONDA_ENV_PATH=$CONDA/envs/ezc3d
5865
mkdir -p $MAIN_FOLDER/$BUILD_FOLDER
5966
cd $MAIN_FOLDER/$BUILD_FOLDER
60-
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_ENV_PATH -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=ON -DBUILD_DOC=OFF -DBUILD_EXAMPLE=OFF -DUSE_MATRIX_FAST_ACCESSOR=OFF -DBINDER_MATLAB=ON -DMatlab_ezc3d_INSTALL_DIR=$HOME -DBINDER_PYTHON3=OFF ..
67+
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_ENV_PATH -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -DBUILD_DOC=OFF -DBUILD_EXAMPLE=OFF -DUSE_MATRIX_FAST_ACCESSOR=OFF -DBINDER_MATLAB=ON -DMatlab_ezc3d_INSTALL_DIR=$HOME -DBINDER_PYTHON3=OFF ..
6168
make install -j${{ steps.cpu-cores.outputs.count }}
6269
cd $MAIN_FOLDER
6370

.github/workflows/run_octave_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- os: ubuntu-20.04
14+
- os: ubuntu-latest
1515
label: linux-64
1616
prefix: /usr/share/miniconda3/envs/ezc3d
1717
- os: macos-latest

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- os: ubuntu-20.04
14+
- os: ubuntu-latest
1515
label: linux-64
1616
prefix: /usr/share/miniconda3/envs/ezc3d
1717
- os: macos-latest

0 commit comments

Comments
 (0)