Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jul 6, 2021
1 parent 9c42858 commit 0be5142
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/build.yml
@@ -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.31.0]
rust: [stable, 1.31.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 Down Expand Up @@ -92,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.31.0]
rust: [1.52.1]
TARGET:
- x86_64-unknown-linux-gnu

Expand All @@ -116,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 @@ -136,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 @@ -165,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 0be5142

Please sign in to comment.