aquatic/.github/workflows/cargo-build-and-test.yml
Joakim Frostegård 50be6acd22 Fix CI workflow
2022-03-18 15:34:40 +01:00

35 lines
867 B
YAML

name: 'cargo: build and test'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build-test-linux:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install libhwloc-dev -y
- name: Build
run: |
cargo build --verbose -p aquatic_udp --features "cpu-pinning"
cargo build --verbose -p aquatic_http --features "cpu-pinning"
cargo build --verbose -p aquatic_ws --features "cpu-pinning"
- name: Run tests
run: cargo test --verbose --workspace --all-targets
build-macos:
runs-on: macos-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose -p aquatic_udp