Skip to content

Commit

Permalink
Removed useless multiple matlab compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Aug 12, 2024
1 parent 1032e1d commit 8f264db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/publish_matlab_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [R2021b, R2022a, R2022b, R2023a, R2023b, R2024a]
include:
- os: ubuntu-latest
label: linux-64
Expand All @@ -23,12 +22,7 @@ jobs:
- os: windows-latest
label: win-64
prefix: C:\Miniconda3\envs\ezc3d
exclude:
- os: macos-latest
version: R2023b
- os: macos-latest
version: R2024a
name: ${{ matrix.label }}_${{ matrix.version }}
name: ${{ matrix.label }}
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -59,10 +53,13 @@ jobs:
mamba list
git submodule update --init --recursive
- name: Install MATLAB
- name: Install MATLAB on WINDOWS and LINUX
uses: matlab-actions/setup-matlab@v2

- name: Install MATLAB on MACOS
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.version }}
release: R2023a

- name: Build ezc3d on UNIX
run: |
Expand Down Expand Up @@ -91,20 +88,20 @@ jobs:

- name: Build MATLAB archives on UNIX
run: |
zip -r ezc3d_matlab_${{ matrix.label }}_${{ matrix.version }}.zip $HOME/ezc3d_matlab
zip -r ezc3d_matlab_${{ matrix.label }}.zip $HOME/ezc3d_matlab
if: matrix.label != 'win-64'

- name: Build MATLAB archives on WINDOWS
run: |
7z a ezc3d_matlab_${{ matrix.label }}_${{ matrix.version }}.zip $HOME/ezc3d_matlab
7z a ezc3d_matlab_${{ matrix.label }}.zip $HOME/ezc3d_matlab
if: matrix.label == 'win-64'

- name: Upload files to a GitHub release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "ezc3d_matlab_${{ matrix.label }}_${{ matrix.version }}.zip"
file: "ezc3d_matlab_${{ matrix.label }}.zip"
update_latest_release: true
verbose: true
overwrite: true
10 changes: 1 addition & 9 deletions .github/workflows/run_matlab_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [R2021b, R2022a, R2022b, R2023a, R2023b, R2024a]
include:
- os: ubuntu-latest
label: linux-64
Expand All @@ -21,12 +20,7 @@ jobs:
- os: windows-latest
label: win-64
prefix: C:\Miniconda3\envs\ezc3d
exclude:
- os: macos-latest
version: R2023b
- os: macos-latest
version: R2024a
name: ${{ matrix.label }}_${{ matrix.version }}
name: ${{ matrix.label }}
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -59,8 +53,6 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.version }}

- name: Build ezc3d on UNIX
run: |
Expand Down

0 comments on commit 8f264db

Please sign in to comment.