Skip to content

Commit 2c3ed6a

Browse files
committed
[CI] Matlab builds
1 parent a482b05 commit 2c3ed6a

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/workflows/matlab.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
include:
1717
- os: ubuntu-22.04
1818
name: glnxa64
19-
matlab-version: 'R2021a'
19+
matlab-release: 'R2021a'
2020
host: x86_64-bionic-linux-gnu
2121
- os: macos-14
2222
name: maca64
@@ -26,6 +26,7 @@ jobs:
2626
name: maci64
2727
matlab-release: 'R2021a'
2828
host: macos
29+
fail-fast: false
2930
runs-on: ${{ matrix.os }}
3031
steps:
3132
- uses: actions/checkout@v4
@@ -42,7 +43,7 @@ jobs:
4243
uses: matlab-actions/setup-matlab@64144ac4bb7c754f9ef7642f693671c873701c60
4344
id: matlab
4445
with:
45-
release: ${{ matrix.matlab-version }}
46+
release: ${{ matrix.matlab-release }}
4647

4748
- name: Build
4849
run: >
@@ -64,13 +65,15 @@ jobs:
6465
with:
6566
files: alpaqa-matlab-${{ matrix.name }}.zip
6667

68+
- run: conan cache clean
69+
6770
build-windows:
6871
strategy:
6972
matrix:
7073
include:
7174
- os: windows-2022
7275
name: win64
73-
matlab-version: 'R2021a'
76+
matlab-release: 'R2021a'
7477
host: amd64
7578
runs-on: ${{ matrix.os }}
7679
steps:
@@ -88,12 +91,12 @@ jobs:
8891
uses: matlab-actions/setup-matlab@64144ac4bb7c754f9ef7642f693671c873701c60
8992
id: matlab
9093
with:
91-
release: ${{ matrix.matlab-version }}
94+
release: ${{ matrix.matlab-release }}
9295

9396
- name: Build
9497
shell: cmd
9598
run: >
96-
call scripts\ci\build-matlab-windows.bat
99+
call .\scripts\ci\build-matlab-windows.bat
97100
"${{ steps.matlab.outputs.matlabroot }}" "${{ matrix.host }}" "." "staging"
98101
99102
- name: Package

scripts/ci/build-matlab-windows.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set "out_dir=%~4"
1818
if "%out_dir%"=="" set "out_dir=staging\matlab"
1919

2020
:: Source the Visual Studio environment
21-
set "vcvarsall_path=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat"
21+
set "vcvarsall_path=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
2222
call "%vcvarsall_path%" %triple% || exit /b 1
2323

2424
:: Create Conan profiles

scripts/ci/profiles/macos.profile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include(default)
44
os.version=11.0
55

66
[conf]
7+
tools.build:skip_test=True
78
tools.cmake.cmaketoolchain:generator=Ninja Multi-Config
89
tools.build:compiler_executables*={"fortran": "FC-NOTFOUND" }
910

scripts/ci/profiles/windows-amd64.profile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include(default)
22

33
[conf]
4+
tools.build:skip_test=True
45
tools.build:cxxflags+=["/arch:AVX2"]
56
tools.build:cflags+=["/arch:AVX2"]
67
tools.cmake.cmaketoolchain:generator=Ninja Multi-Config

0 commit comments

Comments
 (0)