Skip to content

Download the toolbox-$OS-true artifact (#197) #19

Download the toolbox-$OS-true artifact (#197)

Download the toolbox-$OS-true artifact (#197) #19

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: Run MATLAB checks and tests
env:
snapshot_version: v1.7.0
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-26, windows-latest]
matlab-version: [R2023b, latest]
steps:
- name: Checkout repository
uses: TopoToolbox/actions/checkout@main
with:
submodules: true
- name: Set up MATLAB
uses: TopoToolbox/actions/setup-matlab@main
with:
release: ${{ matrix.matlab-version }}
cache: ${{ matrix.os != 'windows-latest' }}
products: >
Mapping_Toolbox
Image_Processing_Toolbox
MATLAB_Coder
- name: Cache snapshot data
id: cache-snapshots
uses: TopoToolbox/actions/cache@main
with:
path: tests/snapshots/data
key: snapshots-${{ env.snapshot_version }}
- name: Download and extract snapshot data
if: steps.cache-snapshots.outputs.cache-hit != 'true'
working-directory: tests/snapshots
shell: bash
run: |
curl -L -o snapshot_data.tar.gz \
"https://github.com/TopoToolbox/snapshot_data/releases/download/$snapshot_version/snapshot_data.tar.gz"
tar -xzf snapshot_data.tar.gz
- name: Verify snapshot data
working-directory: tests/snapshots
shell: bash
if: ${{ matrix.os != 'windows-latest' }}
run:
shasum -c --status sha256sum.txt
- name: Run checks and tests
uses: TopoToolbox/actions/run-build@main
with:
tasks: compile check test(useGraphics=false)