Reduce number of GitHub Actions CI builds

By reducing the number of CI jobs for GitHub actions, it should be
possible to get a faster overview over the status of all CI jobs. While
this does increase the total build time of GitHub Actions by reducing
parallelization, it should still finish within the SourceHut CI times.
This commit is contained in:
Christian Duerr 2020-11-17 13:21:51 +00:00 committed by GitHub
parent c88c7830ec
commit 8b10e5e778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 20 deletions

View File

@ -9,30 +9,19 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
rust_version: [stable, 1.43.1]
os: [windows-latest, macos-latest] os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Rustup - name: Stable
run: rustup default ${{ matrix.rust_version }}
- name: Test
run: cargo test run: cargo test
- name: Clippy
clippy: run: |
strategy: rustup component add clippy
matrix: cargo clippy --all-targets
os: [windows-latest, macos-latest] - name: Oldstable
run: |
runs-on: ${{ matrix.os }} rustup default 1.43.1
cargo test
steps:
- uses: actions/checkout@v2
- name: Rustup
run: rustup default ${{ matrix.rust_version }}
- name: Install Clippy
run: rustup component add clippy
- name: Lint
run: cargo clippy --all-targets