mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
39 lines
No EOL
1 KiB
YAML
39 lines
No EOL
1 KiB
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: 10
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build
|
|
run: |
|
|
cargo build --verbose -p aquatic_udp --features "cpu-pinning"
|
|
cargo build --verbose -p aquatic_udp --features "with-glommio cpu-pinning" --no-default-features
|
|
|
|
cargo build --verbose -p aquatic_http --features "cpu-pinning"
|
|
|
|
cargo build --verbose -p aquatic_ws --features "cpu-pinning"
|
|
cargo build --verbose -p aquatic_ws --features "with-glommio cpu-pinning" --no-default-features
|
|
- 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
|
|
cargo build --verbose -p aquatic_ws |