Skip to content

Commit

Permalink
Add workflow to build MATLAB pckages
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Feb 7, 2025
1 parent 5ae282a commit 86cfa6f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-matlab-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Build MATLAB Packages"

on:
workflow_call: # Allows calling from other workflows
workflow_dispatch: # Allows manual triggering

jobs:
build-python-packages:

strategy:
matrix:
include:
- os: ubuntu-24.04
- os: windows-latest

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Dependencies
uses: ./.github/actions/setup-dependencies
with:
use_matlab: true

- name: Build MATLAB ToolBox
run: make -C matlab toolbox
if: runner.os == 'ubuntu-24.04'

- name: Build MATLAB ToolBox
run: MSBuild /p:Configuration=Release /p:Platform=x64 /t:Package matlab\msbuild\ice.proj
if: runner.os == 'windows-latest'

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: matlab-packages-${{ matrix.os }}
path: matlab/toolbox/*.mltbx

0 comments on commit 86cfa6f

Please sign in to comment.