Skip to content

Commit

Permalink
Only run CI on {PRs against,pushes to master} and fix MSRV CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Jan 9, 2023
1 parent 9560241 commit dad4f6d
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

env:
RUST_BACKTRACE: short
Expand All @@ -10,7 +16,7 @@ env:
RUSTDOCFLAGS: -Dwarnings

jobs:
# Test on a few targets, stable, beta, and msrv
# Test on a few targets, stable, beta
test:
name: Tests - ${{ matrix.name }}
runs-on: ${{ matrix.os }}
Expand All @@ -22,7 +28,6 @@ jobs:
- macos
- win64
- win32
- msrv
- beta
- nightly
include:
Expand All @@ -38,9 +43,6 @@ jobs:
- name: win32
os: windows-latest
toolchain: stable-i686-msvc
- name: msrv
os: ubuntu-latest
toolchain: '1.36.0'
- name: beta
os: ubuntu-latest
toolchain: beta
Expand All @@ -55,6 +57,17 @@ jobs:
- run: cargo check --verbose
- run: cargo test --verbose
- run: cargo build --no-default-features
MSRV:
name: Check MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.36.0
# Can't run tests because we have ed2021 crates in the dev-dependency
# graph, which old cargo can't parse. It seems likely that tests would
# pass on older versions if the crate builds and they pass on stable,
# though.
- run: cargo build --verbose

# Check formatting
rustfmt:
Expand Down

0 comments on commit dad4f6d

Please sign in to comment.