From c9797079e8c7a6706bfa332ceae3a333e7bd9845 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 24 Feb 2026 14:36:42 +0000 Subject: [PATCH] Fix MATLAB ToolboxOptions constructor arguments in CI workflow The `matlab.addons.toolbox.ToolboxOptions` constructor requires the toolbox identifier (GUID) as the second positional argument when initializing from a folder. Previous attempts passed it as a name-value pair or omitted it, causing build failures. This commit updates the call to pass the GUID correctly and also updates the Author Name and Email to 'Van Hooser lab' and 'vanhoosr@brandeis.edu' respectively. --- .github/workflows/release.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e91577..df93fbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,20 +122,14 @@ jobs: % 3. Initialize Options from the MATLAB source folder % This creates the object without needing a .prj file on disk yet - opts = matlab.addons.toolbox.ToolboxOptions(fullfile(pwd, 'src', 'matlab')); - - % 4. Set the Required Fields - opts.ToolboxName = toolboxName; - opts.ToolboxVersion = version; - opts.ToolboxIdentifier = guid; - opts.AuthorName = 'Pyraview Team'; - opts.AuthorEmail = ''; - opts.Description = 'High-performance multi-resolution decimation engine.'; - opts.OutputFile = fullfile(pwd, 'Pyraview.mltbx'); - - % 5. Map the files - % We want the root of the toolbox to be the src/matlab folder - opts.ToolboxFiles = {fullfile(pwd, 'src', 'matlab')}; + opts = matlab.addons.toolbox.ToolboxOptions(fullfile(pwd, 'src', 'matlab'), guid, ... + 'ToolboxName', toolboxName, ... + 'ToolboxVersion', version, ... + 'AuthorName', 'Van Hooser lab', ... + 'AuthorEmail', 'vanhoosr@brandeis.edu', ... + 'Description', 'High-performance multi-resolution decimation engine.', ... + 'OutputFile', fullfile(pwd, 'Pyraview.mltbx'), ... + 'ToolboxFiles', {fullfile(pwd, 'src', 'matlab')}); % 6. Package it fprintf('Packaging %s v%s [%s]...\n', toolboxName, version, guid);