matlab-actions / setup-matlab

Set up your GitHub Actions workflow with a specific version of MATLAB.
BSD 3-Clause "New" or "Revised" License
77 stars 12 forks source link

Request R2024b prerelease #117

Open scivision opened 5 months ago

scivision commented 5 months ago

Requesting option for R2024b prerelease.

davidbuzinski commented 4 months ago

Hi @scivision ,

We currently provide undocumented support for prerelease using the latest-including-prerelease keyword. This keyword will flip to 24b GR when it is released at the same time that the latest release keyword switches over. The release installed with latest-including-prereleases will always be our latest release, including any prereleases.

Please note that this API is currently undocumented and subject to change, but I will keep this issue open and close it when we document it. I will also provide updates here if the API changes.

Here is some sample yaml that should work to install the 24b prerelease using our actions:

on: [push]
jobs: 
  my-job:
    name: Run Build
    runs-on: ubuntu-24.04
    steps: 
      - name: Check out repository
        uses: actions/checkout@v4
      - name: Setup MATLAB
        uses: matlab-actions/setup-matlab@v2
        with:
          release: latest-including-prerelease
      - name: Run command
        uses: matlab-actions/run-command@v2
        with:
          command: ver