Add LICENSE #218
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: Build | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
jobs: | |
build-base: | |
runs-on: ${{ matrix.os }} | |
env: | |
RUSTFLAGS: ${{ matrix.rustflags }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
toolchain: ["1.74", "stable"] | |
rustflags: ["--cfg mfio_assume_linear_types --cfg tokio_unstable", "--cfg tokio_unstable"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- name: Build without examples | |
run: cargo build --verbose | |
build-nightly: | |
runs-on: ${{ matrix.os }} | |
env: | |
RUSTFLAGS: ${{ matrix.rustflags }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
toolchain: ["1.74", "stable", "nightly-2023-10-01"] | |
rustflags: ["--cfg mfio_assume_linear_types --cfg tokio_unstable", "--cfg tokio_unstable"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- name: Build | |
run: cargo build --workspace --all-features --verbose | |
- name: Build examples | |
run: cargo build --workspace --all-features --examples --verbose | |
build-cross-aarch64: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: ${{ matrix.rustflags }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: ["1.74", "stable"] | |
rustflags: ["--cfg mfio_assume_linear_types --cfg tokio_unstable", "--cfg tokio_unstable"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: aarch64-unknown-linux-gnu | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --target aarch64-unknown-linux-gnu --verbose |