Skip to content

experiment with github actions #15

experiment with github actions

experiment with github actions #15

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
jobs:
build-mex:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,windows-latest,macos-latest,macos-14]
steps:
- name: Retrieve the source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Remove old MEX files
shell: bash
run: rm Solver/Mexfun/*.mex* Solver/Mexfun/*/*.mex*
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.os == 'macos-14' && 'R2023b' || ( matrix.os == 'windows-latest' && 'R2021b' || 'R2021a' ) }}
- name: Build MEX files
uses: matlab-actions/run-command@v2
with:
command: install_sdpt3 -rebuild
- uses: actions/upload-artifact@v4
with:
name: mexfiles-${{ matrix.os }}
path: |
Solver/Mexfun/*.mex*
Solver/Mexfun/*/*.mex*
package:
runs-on: ubuntu-latest
steps:
- name: Retrieve the source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: mexfiles-ubuntu-latest
- uses: actions/download-artifact@v4
with:
name: mexfiles-windows-latest
- uses: actions/download-artifact@v4
with:
name: mexfiles-macos-latest
- uses: actions/download-artifact@v4
with:
name: mexfiles-macos-14
- name: Show files
run: find . -path './git' -prune -o -oriunt