replace profiling macro by simple scope! call #760
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: rust-build | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- v* # don't run on tags since release does that | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo (no download lfs dependencies) | |
uses: actions/checkout@v2 | |
with: | |
lfs: false | |
- name: Update things | |
run: sudo apt-get update | |
- name: install libs | |
run: sudo apt-get install libasound2-dev libudev-dev pkg-config | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: 'stable' | |
- name: Build | |
run: cargo build --verbose -p native_app | |
- name: Build headless | |
run: cargo build --verbose -p headless | |
- name: Run tests | |
run: cargo test --all --verbose |