Skip to content

Update GitHub Actions to use latest versions #26

Update GitHub Actions to use latest versions

Update GitHub Actions to use latest versions #26

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '.github/workflows/release.yml'
- 'toolbox/overlay-triplets'
- 'toolbox/*.mlx'
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out repo
uses: actions/checkout@v6
- name: Cache MATLAB build files
uses: actions/cache@v5
with:
key: matlab-buildtool
path: |
.buildtool
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
- name: Run MATLAB build
uses: matlab-actions/run-build@v2
- name: Upload SARIF file
if: success() || failure()
uses: github/codeql-action/upload-sarif@v4
with:
# Path to SARIF file relative to the root of the repository
sarif_file: code-issues/results.sarif
# Optional category for the results
# Used to differentiate multiple results for one commit
category: matlab