Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jul 13, 2021
1 parent e24868f commit aeda6cb
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
on:
push:
pull_request:
schedule:
- cron: 0 0 * * 0

name: Build

Expand All @@ -15,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly, 1.34.0]
rust: [stable, 1.34.0]
TARGET:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
Expand All @@ -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
Expand Down Expand Up @@ -62,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta]
rust: [stable]
TARGET:
- x86_64-unknown-linux-gnu

Expand All @@ -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
Expand All @@ -87,6 +80,25 @@ jobs:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.53.0]
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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -146,4 +148,4 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
path-to-lcov: './lcov.info'

0 comments on commit aeda6cb

Please sign in to comment.