Skip to content

Refactors cpp custom function to return the output dimension #233

Refactors cpp custom function to return the output dimension

Refactors cpp custom function to return the output dimension #233

Workflow file for this run

name: Run Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
platform: [Windows, Linux, macOS]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout RAT
uses: actions/checkout@v3
- name: Build Mex
uses: matlab-actions/run-command@v1
with:
command: buildScript
- name: Run tests
uses: matlab-actions/run-command@v1
with:
command: testScript
- name: Create build archive (Windows and macOS)
if: runner.os != 'Linux'
run: tar --exclude="**/-lang:c++.zip" -acvf ${{ runner.os }}.zip compile
- name: Create build archive (Linux)
if: runner.os == 'Linux'
run: zip -r ${{ runner.os }}.zip compile -x "**/-lang:c++.zip"
- name: Upload release
if: github.ref == 'refs/heads/master'
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag: nightly
overwrite: true
file: '${{ runner.os }}.zip'
asset_name: '${{ runner.os }}.zip'