CI: Use MSRV for build job

This commit is contained in:
Jonas Platte 2020-12-30 13:56:26 +01:00
parent 2dbb21fb93
commit f48ec3e0e9
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -12,16 +12,23 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Use MSRV for the build job
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.32
default: true
profile: minimal
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
# Use stable for other jobs
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
default: true default: true
profile: minimal profile: minimal
components: rustfmt, clippy components: rustfmt, clippy
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Run tests - name: Run tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: