Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a github actions runner file #49

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/workflows/.DS_Store
Binary file not shown.
82 changes: 82 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Rust

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Dependencies (if Ubuntu)
env:
ACCEPT_EULA: Y
run: sudo apt-get -y update && sudo apt-get install -f && sudo apt-get -y install portaudio19-dev pkg-config libclang-19-dev autotools-dev libtool automake
if: contains(runner.os, 'Linux')
- name: Install Dependencies (if macos)
env:
ACCEPT_EULA: Y
run: brew update && brew install automake autoconf libtool pkg-config
if: contains(runner.os, 'macOS')
- uses: Swatinem/rust-cache@v1
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --features "bundled"
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features "bundled"

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --features "bundled" --all-targets -- -D warnings
4 changes: 2 additions & 2 deletions webrtc-audio-processing-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ fn main() -> Result<()> {
.cpp(true)
.file("src/wrapper.cpp")
.include(&webrtc_include)
.flag("-Wno-unused-parameter")
.flag("-Wno-deprecated-declarations")
// .flag("-Wno-unused-parameter")
// .flag("-Wno-deprecated-declarations")
.flag("-std=c++11")
.out_dir(&out_dir())
.compile("webrtc_audio_processing_wrapper");
Expand Down
Loading