Skip to content

Add type safety to endpoints #26

Add type safety to endpoints

Add type safety to endpoints #26

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ linux, macos ]
cmajor_version: [ 0.9.2170 ]
include:
- os: linux
runner: ubuntu-latest
arch: x64
library_name: libCmajPerformer.so
- os: macos
runner: macos-latest
arch: universal2
library_name: libCmajPerformer.dylib
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- if: matrix.os == 'linux'
name: Install dependencies
run: sudo apt-get install libasound2-dev
- name: Fetch Cmajor
run: |
scripts/fetch-cmajor.py ${{ matrix.cmajor_version }} ${{ matrix.os }} ${{ matrix.arch }}
echo "CMAJOR_LIB_PATH=${PWD}/cmaj/${{ matrix.cmajor_version }}/${{ matrix.os }}/${{ matrix.arch }}/${{ matrix.library_name }}" > .env
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose