Skip to content

Commit ce924a3

Browse files
committed
Clean up CI config
1 parent aa0d0c8 commit ce924a3

File tree

6 files changed

+70
-84
lines changed

6 files changed

+70
-84
lines changed

.clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.46"

.github/workflows/build-and-test.yaml renamed to .github/workflows/ci.yml

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
name: Build and test
1+
name: CI
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- master
7-
pull_request:
8+
schedule:
9+
- cron: '0 2 * * *'
10+
11+
env:
12+
RUSTFLAGS: -D warnings
13+
RUST_BACKTRACE: 1
814

915
jobs:
10-
build_and_test:
16+
test:
1117
runs-on: ${{ matrix.os }}
1218
strategy:
1319
fail-fast: false
@@ -49,13 +55,70 @@ jobs:
4955
- run: cargo build --target ${{ matrix.target }} --all --all-features --all-targets
5056
- run: cargo test --target ${{ matrix.target }}
5157

58+
cross:
59+
runs-on: ${{ matrix.os }}
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
os: [ubuntu-latest, macos-latest]
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Install Rust
67+
run: rustup update stable
68+
- name: Install cross
69+
run: cargo install cross
70+
- name: Android
71+
if: startsWith(matrix.os, 'ubuntu')
72+
run: cross test --target arm-linux-androideabi
73+
- name: NetBSD
74+
if: startsWith(matrix.os, 'ubuntu')
75+
run: cross build --target x86_64-unknown-netbsd
76+
- name: FreeBSD
77+
if: startsWith(matrix.os, 'ubuntu')
78+
run: cross build --target x86_64-unknown-freebsd
79+
- name: iOS
80+
if: startsWith(matrix.os, 'macos')
81+
run: cross build --target aarch64-apple-ios
82+
# - name: illumos
83+
# if: startsWith(matrix.os, 'ubuntu')
84+
# run: cross build --target x86_64-unknown-illumos
85+
5286
msrv:
5387
runs-on: ubuntu-latest
5488
strategy:
5589
matrix:
56-
rust: [1.46.0]
90+
# When updating this, the reminder to update the minimum supported
91+
# Rust version in Cargo.toml and .clippy.toml.
92+
rust: ['1.46']
5793
steps:
5894
- uses: actions/checkout@v2
5995
- name: Install Rust
6096
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
6197
- run: cargo build
98+
99+
clippy:
100+
runs-on: ubuntu-latest
101+
steps:
102+
- uses: actions/checkout@v2
103+
- name: Install Rust
104+
run: rustup update stable
105+
- uses: actions-rs/clippy-check@v1
106+
with:
107+
token: ${{ secrets.GITHUB_TOKEN }}
108+
args: --all-features -- -W clippy::all
109+
110+
fmt:
111+
runs-on: ubuntu-latest
112+
steps:
113+
- uses: actions/checkout@v2
114+
- name: Install Rust
115+
run: rustup update stable
116+
- run: cargo fmt --all -- --check
117+
118+
security_audit:
119+
runs-on: ubuntu-latest
120+
steps:
121+
- uses: actions/checkout@v2
122+
- uses: actions-rs/audit-check@v1
123+
with:
124+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/cross.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/security.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ name = "async-io"
66
version = "1.6.0"
77
authors = ["Stjepan Glavina <[email protected]>"]
88
edition = "2018"
9+
rust-version = "1.46"
910
description = "Async I/O and timers"
1011
license = "Apache-2.0 OR MIT"
1112
repository = "https://github.com/smol-rs/async-io"
1213
homepage = "https://github.com/smol-rs/async-io"
1314
documentation = "https://docs.rs/async-io"
1415
keywords = ["mio", "epoll", "kqueue", "iocp", "wepoll"]
1516
categories = ["asynchronous", "network-programming", "os"]
17+
exclude = ["/.*"]
1618

1719
[dependencies]
1820
concurrent-queue = "1.2.2"

0 commit comments

Comments
 (0)