mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Move GitHub workflows into single file, split build-and-test
This commit is contained in:
parent
df85a29c58
commit
6854351fb5
6 changed files with 38 additions and 31 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
name: 'test-transfer'
|
name: 'test-file-transfers'
|
||||||
description: 'test aquatic file transfer'
|
description: 'test aquatic file transfers'
|
||||||
outputs:
|
outputs:
|
||||||
# http_ipv4:
|
# http_ipv4:
|
||||||
# description: 'HTTP IPv4 status'
|
# description: 'HTTP IPv4 status'
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
name: 'cargo: build and test'
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -10,9 +10,9 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-test-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 25
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install latest stable Rust
|
- name: Install latest stable Rust
|
||||||
|
|
@ -30,9 +30,6 @@ jobs:
|
||||||
cargo build --verbose -p aquatic_udp --features "cpu-pinning"
|
cargo build --verbose -p aquatic_udp --features "cpu-pinning"
|
||||||
cargo build --verbose -p aquatic_http
|
cargo build --verbose -p aquatic_http
|
||||||
cargo build --verbose -p aquatic_ws
|
cargo build --verbose -p aquatic_ws
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose --workspace --profile "test-fast"
|
|
||||||
|
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
@ -49,3 +46,35 @@ jobs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose -p aquatic_udp
|
run: cargo build --verbose -p aquatic_udp
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install latest stable Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get update -y && sudo apt-get install libhwloc-dev -y
|
||||||
|
- name: Setup Rust dependency caching
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test --verbose --workspace --profile "test-fast"
|
||||||
|
|
||||||
|
test-file-transfers:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: "Test BitTorrent file transfers over UDP, TLS and WSS"
|
||||||
|
timeout-minutes: 20
|
||||||
|
container:
|
||||||
|
image: rust:1-bullseye
|
||||||
|
options: --ulimit memlock=524288:524288
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Test file transfers
|
||||||
|
uses: ./.github/actions/test-file-transfers
|
||||||
|
id: test_file_transfers
|
||||||
22
.github/workflows/test-transfer.yml
vendored
22
.github/workflows/test-transfer.yml
vendored
|
|
@ -1,22 +0,0 @@
|
||||||
name: "Test UDP, TLS and WSS file transfer"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test-transfer-http:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: "Test BitTorrent file transfer over UDP, TLS and WSS"
|
|
||||||
timeout-minutes: 20
|
|
||||||
container:
|
|
||||||
image: rust:1-bullseye
|
|
||||||
options: --ulimit memlock=524288:524288
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Test file transfers
|
|
||||||
uses: ./.github/actions/test-transfer
|
|
||||||
id: test_transfer
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# aquatic: high-performance open BitTorrent tracker
|
# aquatic: high-performance open BitTorrent tracker
|
||||||
|
|
||||||
[](https://github.com/greatest-ape/aquatic/actions/workflows/cargo-build-and-test.yml) [](https://github.com/greatest-ape/aquatic/actions/workflows/test-transfer.yml)
|
[](https://github.com/greatest-ape/aquatic/actions/workflows/ci.yml)
|
||||||
|
|
||||||
High-performance open BitTorrent tracker, consisting
|
High-performance open BitTorrent tracker, consisting
|
||||||
of sub-implementations for different protocols:
|
of sub-implementations for different protocols:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue