Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed useless multiple matlab compilation #336

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 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,15 @@ jobs:
mamba list
git submodule update --init --recursive

- name: Install MATLAB
- name: Install MATLAB on WINDOWS and LINUX
uses: matlab-actions/setup-matlab@v2
if: matrix.label != 'osx-64'

- name: Install MATLAB on MACOS
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.version }}
release: R2023a
if: matrix.label == 'osx-64'

- name: Build ezc3d on UNIX
run: |
Expand Down Expand Up @@ -91,20 +90,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
17 changes: 8 additions & 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 @@ -57,10 +51,15 @@ jobs:
mamba list
git submodule update --init --recursive

- name: Install MATLAB
- name: Install MATLAB on WINDOWS and LINUX
uses: matlab-actions/setup-matlab@v2
if: matrix.label != 'osx-64'

- name: Install MATLAB on MACOS
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.version }}
release: R2023a
if: matrix.label == 'osx-64'

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