Skip to content

Commit 1c9d4cf

Browse files
committed
Clean up CI config
1 parent 98fd970 commit 1c9d4cf

File tree

6 files changed

+84
-91
lines changed

6 files changed

+84
-91
lines changed

.clippy.toml

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

.github/workflows/build-and-test.yaml

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

.github/workflows/ci.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
schedule:
9+
- cron: '0 2 * * *'
10+
11+
env:
12+
RUSTFLAGS: -D warnings
13+
RUST_BACKTRACE: 1
14+
15+
jobs:
16+
test:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest]
22+
rust: [nightly, beta, stable]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Install Rust
26+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
27+
- run: rustup target add thumbv7m-none-eabi
28+
- name: Install valgrind
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y valgrind
32+
- name: Run cargo check
33+
run: cargo check --all --all-features --all-targets
34+
if: startsWith(matrix.rust, 'nightly')
35+
- name: Run cargo check (no_std)
36+
run: cargo check --no-default-features --target thumbv7m-none-eabi
37+
- run: cargo test
38+
- name: Run cargo test (valgrind)
39+
run: cargo test -- --test-threads=1
40+
env:
41+
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1"
42+
43+
msrv:
44+
runs-on: ubuntu-latest
45+
strategy:
46+
matrix:
47+
# When updating this, the reminder to update the minimum supported
48+
# Rust version in Cargo.toml and .clippy.toml.
49+
rust: ['1.39']
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Install Rust
53+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
54+
- run: cargo build
55+
56+
clippy:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v2
60+
- name: Install Rust
61+
run: rustup update stable
62+
- uses: actions-rs/clippy-check@v1
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
args: --all-features -- -W clippy::all
66+
67+
fmt:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v2
71+
- name: Install Rust
72+
run: rustup update stable
73+
- run: cargo fmt --all -- --check
74+
75+
security_audit:
76+
runs-on: ubuntu-latest
77+
steps:
78+
- uses: actions/checkout@v2
79+
- uses: actions-rs/audit-check@v1
80+
with:
81+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yaml

Lines changed: 0 additions & 24 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
@@ -3,13 +3,15 @@ name = "async-task"
33
version = "4.0.3"
44
authors = ["Stjepan Glavina <[email protected]>"]
55
edition = "2018"
6+
rust-version = "1.39"
67
license = "Apache-2.0 OR MIT"
78
repository = "https://github.com/smol-rs/async-task"
89
homepage = "https://github.com/smol-rs/async-task"
910
documentation = "https://docs.rs/async-task"
1011
description = "Task abstraction for building executors"
1112
keywords = ["futures", "task", "executor", "spawn"]
1213
categories = ["asynchronous", "concurrency", "no-std"]
14+
exclude = ["/.*"]
1315

1416
[features]
1517
default = ["std"]

0 commit comments

Comments
 (0)