Skip to content

Commit

Permalink
[CI] Matlab builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Dec 7, 2024
1 parent a482b05 commit 2c3ed6a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
include:
- os: ubuntu-22.04
name: glnxa64
matlab-version: 'R2021a'
matlab-release: 'R2021a'
host: x86_64-bionic-linux-gnu
- os: macos-14
name: maca64
Expand All @@ -26,6 +26,7 @@ jobs:
name: maci64
matlab-release: 'R2021a'
host: macos
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -42,7 +43,7 @@ jobs:
uses: matlab-actions/setup-matlab@64144ac4bb7c754f9ef7642f693671c873701c60
id: matlab
with:
release: ${{ matrix.matlab-version }}
release: ${{ matrix.matlab-release }}

- name: Build
run: >
Expand All @@ -64,13 +65,15 @@ jobs:
with:
files: alpaqa-matlab-${{ matrix.name }}.zip

- run: conan cache clean

build-windows:
strategy:
matrix:
include:
- os: windows-2022
name: win64
matlab-version: 'R2021a'
matlab-release: 'R2021a'
host: amd64
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -88,12 +91,12 @@ jobs:
uses: matlab-actions/setup-matlab@64144ac4bb7c754f9ef7642f693671c873701c60
id: matlab
with:
release: ${{ matrix.matlab-version }}
release: ${{ matrix.matlab-release }}

- name: Build
shell: cmd
run: >
call scripts\ci\build-matlab-windows.bat
call .\scripts\ci\build-matlab-windows.bat
"${{ steps.matlab.outputs.matlabroot }}" "${{ matrix.host }}" "." "staging"
- name: Package
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build-matlab-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set "out_dir=%~4"
if "%out_dir%"=="" set "out_dir=staging\matlab"

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

:: Create Conan profiles
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/profiles/macos.profile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include(default)
os.version=11.0

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

Expand Down
1 change: 1 addition & 0 deletions scripts/ci/profiles/windows-amd64.profile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include(default)

[conf]
tools.build:skip_test=True
tools.build:cxxflags+=["/arch:AVX2"]
tools.build:cflags+=["/arch:AVX2"]
tools.cmake.cmaketoolchain:generator=Ninja Multi-Config
Expand Down

0 comments on commit 2c3ed6a

Please sign in to comment.