Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 17 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
schedule:
- cron: '21 1 * * FRI'
on: [push, pull_request]

name: Continuous integration

Expand All @@ -14,33 +11,20 @@ jobs:
- stable

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- uses: actions-rs/cargo@v1
with:
command: build
- run: cargo build

- uses: actions-rs/cargo@v1
with:
command: test
- run: cargo test

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check

- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
continue-on-error: true # Currently not clean
- run: cargo clippy -- -D warnings

secondary:
runs-on: ubuntu-latest
Expand All @@ -52,34 +36,23 @@ jobs:
- 1.31.0

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- uses: actions-rs/cargo@v1
with:
command: update
- run: cargo update

# This is the version last compatible with 1.31
- uses: actions-rs/cargo@v1
with:
command: update
args: -p backtrace --precise 0.3.35
- run: cargo update -p backtrace --precise 0.3.35
if: matrix.rust == '1.31.0'

- uses: actions-rs/cargo@v1
with:
command: build
- run: cargo build

# It's not worth making the tests run on 1.31 -- building the
# code is enough.
- uses: actions-rs/cargo@v1
with:
command: test
- run: cargo test
if: matrix.rust != '1.31.0'

windows:
Expand All @@ -90,18 +63,12 @@ jobs:
- stable

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- uses: actions-rs/cargo@v1
with:
command: build
- run: cargo build

- uses: actions-rs/cargo@v1
with:
command: test
- run: cargo test
Loading