Skip to content

Commit

Permalink
ci: remove beta/nightly toolchain jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
sinato committed Sep 20, 2020
1 parent 9a97c8a commit a1fedce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,58 +37,44 @@ jobs:
fail-fast: false
matrix:
config:
- { os: "ubuntu-latest", toolchain: "stable"}
- { os: "ubuntu-latest", toolchain: "beta"}
- { os: "ubuntu-latest", toolchain: "nightly"}
- { os: "windows-2016", toolchain: "stable"}
- { os: "macOS-latest", toolchain: "stable"}
- { os: "ubuntu-latest"}
- { os: "windows-2016"}
- { os: "macOS-latest"}
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Install toolchain
if: ${{ matrix.config.toolchain == 'stable' }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: rustfmt

- name: Install ${{ matrix.config.toolchain }} toolchain
if: ${{ matrix.config.toolchain != 'stable' }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.config.toolchain }}
override: true
components: rustfmt

- name: Install LLVM
uses: ./.github/actions/install-llvm

- name: Cargo build
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
if: ${{ matrix.config.os == 'ubuntu-latest' }}
uses: actions-rs/cargo@v1
continue-on-error: ${{ matrix.config.toolchain == 'nightly' }}
with:
command: build

- name: Install mdbook
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
if: ${{ matrix.config.os == 'ubuntu-latest' }}
uses: actions-rs/install@v0.1
with:
crate: mdbook
version: latest
use-tool-cache: true

- name: mdbook test
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
if: ${{ matrix.config.os == 'ubuntu-latest' }}
run: mdbook test book -L target/debug/deps

- name: Cargo test
uses: actions-rs/cargo@v1
continue-on-error: ${{ matrix.config.toolchain == 'nightly' }}
with:
command: test
args: -- --nocapture
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
submodules: true

- name: Install ${{ matrix.config.toolchain }} toolchain
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down

0 comments on commit a1fedce

Please sign in to comment.