Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions public/assets/button.svg

This file was deleted.

6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2>Generate a GitHub Actions Workflow for MATLAB</h2>
<div
class="form-check form-switch form-switch-md d-flex justify-content-between align-items-center"
data-bs-toggle="tooltip"
title="Enable to license MATLAB with a batch token if your repository is private or uses transformation products, such as MATLAB Coder and MATLAB Compiler.">
title="Use a batch token to license MATLAB if your repository is private or uses transformation products.">
<div class="d-flex align-items-center">
<input
class="form-check-input"
Expand Down Expand Up @@ -114,7 +114,7 @@ <h2>Generate a GitHub Actions Workflow for MATLAB</h2>
<div
class="form-check form-switch form-switch-md d-flex justify-content-between align-items-center"
data-bs-toggle="tooltip"
title="Enable to run MATLAB code that requires a display on GitHub-hosted Linux runners, such as tests that interact with an app UI.">
title="Set up a virtual display on a GitHub-hosted Linux runner to run MATLAB code that requires GUI access.">
<div class="d-flex align-items-center">
<input
class="form-check-input"
Expand Down Expand Up @@ -145,7 +145,7 @@ <h2>Generate a GitHub Actions Workflow for MATLAB</h2>
<div
class="form-check form-switch form-switch-md d-flex justify-content-between align-items-center mb-0"
data-bs-toggle="tooltip"
title="Enable to define a matrix of jobs that run your MATLAB code across Linux, Windows, and macOS.">
title="Define a matrix of jobs to run across Linux, Windows, and macOS platforms.">
<div class="d-flex align-items-center">
<input
class="form-check-input"
Expand Down
22 changes: 11 additions & 11 deletions public/scripts/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ function generateWorkflow({
uses: "matlab-actions/setup-matlab@v2",
with: {
release: "latest",
products:
"Simulink Deep_Learning_Toolbox Computer_Vision_Toolbox",
products: "Simulink Deep_Learning_Toolbox",
cache: "true",
},
},
Expand All @@ -162,20 +161,21 @@ function generateWorkflow({
noCompatMode: true,
});
yaml =
`# This workflow was generated by ${siteUrl}\n\n` +
`# This workflow was generated using the GitHub Actions Workflow Generator for MATLAB.\n` +
`# ${siteUrl}\n\n` +
yaml
.replace(
/^(\s*)products:/m,
"$1# Products to set up in addition to MATLAB\n" +
"$1# See https://github.com/matlab-actions/setup-matlab/?tab=readme-ov-file#set-up-matlab\n" +
"$1# products:",
) // comment out products and add comment above
.replace(
/^(\s*)(MLM_LICENSE_TOKEN: .*)/m,
"$1# You must set the MLM_LICENSE_TOKEN secret in your repository settings\n" +
"$1# See https://github.com/matlab-actions/setup-matlab/?tab=readme-ov-file#use-matlab-batch-licensing-token\n" +
"$1# To use a batch token in this workflow, first create an MLM_LICENSE_TOKEN secret in your repository settings.\n" +
"$1# https://github.com/matlab-actions/setup-matlab/#use-matlab-batch-licensing-token\n" +
"$1$2",
) // comment above MLM_LICENSE_TOKEN
.replace(
/^(\s*)products:/m,
"$1# Set up additional products using the `products` input.\n" +
"$1# https://github.com/matlab-actions/setup-matlab/#set-up-matlab\n" +
"$1# products:",
) // comment out products and add comment above
.replace(/^'on':/m, "on:") // unquote 'on'
.replace(/'true'/g, "true") // unquote 'true'
.replace(/branches:\n\s*-\s*(\w+)/g, "branches: [$1]") // inline branches
Expand Down