add cpp and rust tests on ci #2031
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: [ master-dev ] | |
jobs: | |
build: | |
if: github.repository_owner == 'grame-cncm' || github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Install libmicrohttpd | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install libmicrohttpd-dev | |
- name: Build Faust | |
run: make | |
- name: Copy c header to expected path by impulse test | |
run: | | |
mkdir -p faust/dsp/ | |
cp compiler/generator/libfaust.h faust/dsp/ | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Run impulse tests (C++) | |
run: cd tests/impulse-tests && make cpp | |
- name: Run impulse tests (Rust) | |
run: cd tests/impulse-tests && make rust |