summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2021-06-27 11:57:33 +0200
committerDiego Barrios Romero <eldruin@gmail.com>2021-06-27 11:57:33 +0200
commitdeb65c3a794bdc4e5c534983c8753072cec10adf (patch)
tree9f84d530dce12b0c1c6c0951db37955049b7b10e
parenta5eabb805bc585214d4d5bf716843044ea1241c1 (diff)
downloadads1x1x-async-deb65c3a794bdc4e5c534983c8753072cec10adf.tar.gz
ads1x1x-async-deb65c3a794bdc4e5c534983c8753072cec10adf.tar.xz
ads1x1x-async-deb65c3a794bdc4e5c534983c8753072cec10adf.zip
Update CI
-rw-r--r--.github/workflows/build.yml46
1 files changed, 24 insertions, 22 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cfd9392..f3537d1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,8 +1,6 @@
on:
push:
pull_request:
- schedule:
- - cron: 0 0 * * 0
name: Build
@@ -15,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- rust: [stable, beta, nightly, 1.31.0]
+ rust: [stable, 1.31.0]
TARGET:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
@@ -27,11 +25,6 @@ jobs:
- thumbv7em-none-eabihf
- thumbv7m-none-eabi
- include:
- # Test nightly but don't fail
- - rust: nightly
- experimental: true
-
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
@@ -62,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- rust: [stable, beta]
+ rust: [stable]
TARGET:
- x86_64-unknown-linux-gnu
@@ -74,7 +67,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.TARGET }}
override: true
- components: clippy, rustfmt
+ components: rustfmt
- name: Doc
uses: actions-rs/cargo@v1
@@ -87,6 +80,25 @@ jobs:
command: fmt
args: --all -- --check
+ clippy:
+ name: Clippy
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust: [1.52.1]
+ TARGET:
+ - x86_64-unknown-linux-gnu
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: ${{ matrix.rust }}
+ target: ${{ matrix.TARGET }}
+ override: true
+ components: clippy
+
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
@@ -97,11 +109,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- rust: [stable, beta, nightly]
+ rust: [stable, beta]
TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
- include:
- - rust: nightly
- experimental: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
@@ -117,13 +126,6 @@ jobs:
command: test
args: --target=${{ matrix.TARGET }}
- - name: Build examples
- uses: actions-rs/cargo@v1
- if: contains(matrix.TARGET, 'x86_64')
- with:
- command: build
- args: --target=${{ matrix.TARGET }} --examples
-
coverage:
name: Coverage
runs-on: ubuntu-latest
@@ -146,4 +148,4 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- path-to-lcov: './lcov.info' \ No newline at end of file
+ path-to-lcov: './lcov.info'