| 1 |
name: Test sendfd |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
paths-ignore: |
| 6 |
- '*.mkd' |
| 7 |
- 'LICENSE' |
| 8 |
pull_request: |
| 9 |
|
| 10 |
jobs: |
| 11 |
native-test: |
| 12 |
runs-on: ${{ matrix.os }} |
| 13 |
strategy: |
| 14 |
fail-fast: false |
| 15 |
matrix: |
| 16 |
rust_toolchain: [nightly, stable, 1.70.0] |
| 17 |
os: [ubuntu-latest, macOS-latest] |
| 18 |
flags: ["--all-features", "--all-features --release", ""] |
| 19 |
timeout-minutes: 20 |
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v2 |
| 22 |
- name: Install Rust ${{ matrix.rust_toolchain }} |
| 23 |
uses: actions-rs/toolchain@v1 |
| 24 |
with: |
| 25 |
toolchain: ${{ matrix.rust_toolchain }} |
| 26 |
profile: minimal |
| 27 |
default: true |
| 28 |
- name: Test |
| 29 |
uses: actions-rs/cargo@v1 |
| 30 |
with: |
| 31 |
command: test |
| 32 |
args: ${{ matrix.flags }} --manifest-path=Cargo.toml -- --nocapture |
| 33 |
|
| 34 |
bare-cross-build: |
| 35 |
runs-on: ubuntu-latest |
| 36 |
strategy: |
| 37 |
fail-fast: false |
| 38 |
matrix: |
| 39 |
rust_target: |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
- x86_64-unknown-openbsd |
| 46 |
|
| 47 |
|
| 48 |
timeout-minutes: 20 |
| 49 |
steps: |
| 50 |
- uses: actions/checkout@v2 |
| 51 |
- name: Install Rust nightly |
| 52 |
uses: actions-rs/toolchain@v1 |
| 53 |
with: |
| 54 |
toolchain: nightly |
| 55 |
profile: minimal |
| 56 |
default: true |
| 57 |
- name: Fix-up toolchain |
| 58 |
run: | |
| 59 |
rustup component add rust-src --toolchain nightly --target ${{ matrix.rust_target }} |
| 60 |
- name: Update |
| 61 |
uses: actions-rs/cargo@v1 |
| 62 |
with: |
| 63 |
command: update |
| 64 |
args: --manifest-path=Cargo.toml |
| 65 |
- name: Build ${{ matrix.rust_target }} |
| 66 |
uses: actions-rs/cargo@v1 |
| 67 |
with: |
| 68 |
command: build |
| 69 |
args: --target ${{ matrix.rust_target }} --manifest-path=Cargo.toml -Zbuild-std |
| 70 |
|
| 71 |
cross-ios-build: |
| 72 |
runs-on: macos-latest |
| 73 |
strategy: |
| 74 |
fail-fast: false |
| 75 |
matrix: |
| 76 |
rust_toolchain: [nightly, stable] |
| 77 |
rust_target: |
| 78 |
- aarch64-apple-ios |
| 79 |
- x86_64-apple-ios |
| 80 |
timeout-minutes: 20 |
| 81 |
steps: |
| 82 |
- uses: actions/checkout@v2 |
| 83 |
- name: Install Rust ${{ matrix.rust_toolchain }} |
| 84 |
uses: actions-rs/toolchain@v1 |
| 85 |
with: |
| 86 |
toolchain: ${{ matrix.rust_toolchain }} |
| 87 |
target: ${{ matrix.rust_target }} |
| 88 |
profile: minimal |
| 89 |
default: true |
| 90 |
- name: Update |
| 91 |
uses: actions-rs/cargo@v1 |
| 92 |
with: |
| 93 |
command: update |
| 94 |
args: --manifest-path=Cargo.toml |
| 95 |
- name: Build ${{ matrix.rust_target }} |
| 96 |
uses: actions-rs/cargo@v1 |
| 97 |
with: |
| 98 |
command: build |
| 99 |
args: --target=${{ matrix.rust_target }} --manifest-path=Cargo.toml |