From afd320c981029f50f39de90d1e3005f92af71fd6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:20:37 +0000 Subject: [PATCH 1/2] Update GitHub Actions workflow for Pyraview - Update 'Package Binaries' step to use 7-Zip on Windows runners to fix zip failures. - Simplify packaging logic for non-Windows platforms. - Update 'Package Toolbox' step to package the MATLAB toolbox programmatically, using the GitHub release tag for the version number. --- .github/workflows/build_and_release.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 55bced8..12d6451 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -126,9 +126,30 @@ jobs: # Run the packaging command - name: Package Toolbox uses: matlab-actions/run-command@v2 + env: + RELEASE_TAG: ${{ github.ref_name }} with: command: | - opts = matlab.addons.toolbox.ToolboxOptions('toolboxPackaging.prj'); + % Create the options object without a PRJ file + opts = matlab.addons.toolbox.ToolboxOptions(pwd); + opts.ToolboxName = 'Pyraview'; + + % Grab version from environment variable + v = getenv('RELEASE_TAG'); + if startsWith(v, 'v') + v = v(2:end); + end + opts.ToolboxVersion = v; + + opts.AuthorName = 'Jules'; + opts.ToolboxImage = ''; + opts.Description = 'High-performance multi-resolution decimation engine.'; + opts.OutputFile = 'Pyraview.mltbx'; + + % Important: Include the folder with the MEX files + opts.ToolboxFiles = {fullfile(pwd, 'src', 'matlab')}; + + % Package it matlab.addons.toolbox.packageToolbox(opts); # Upload the .mltbx as an artifact so the release job can pick it up From f176f70fa80b33b1097b7e427408f301f84de670 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:23:17 +0000 Subject: [PATCH 2/2] Update GitHub Actions workflow for Pyraview - Update 'Package Binaries' step to use 7-Zip on Windows runners to fix zip failures. - Simplify packaging logic for non-Windows platforms. - Update 'Package Toolbox' step to package the MATLAB toolbox programmatically, using the GitHub release tag for the version number and 'Van Hooser lab' as the author. --- .github/workflows/build_and_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 12d6451..e74eb27 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -141,7 +141,7 @@ jobs: end opts.ToolboxVersion = v; - opts.AuthorName = 'Jules'; + opts.AuthorName = 'Van Hooser lab'; opts.ToolboxImage = ''; opts.Description = 'High-performance multi-resolution decimation engine.'; opts.OutputFile = 'Pyraview.mltbx';