forked from rust-lang/mdBook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from PlayCover/rust-lang-master
Resolved conflicts
- Loading branch information
Showing
20 changed files
with
1,071 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,52 @@ | ||
name: CI | ||
on: | ||
# Only run when merging to master, or open/synchronize/reopen a PR. | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
# Only run when merging to master, or open/synchronize/reopen a PR. | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
build: [linux, macos, windows] | ||
include: | ||
- build: linux | ||
os: ubuntu-latest | ||
rust: stable | ||
- build: macos | ||
os: macos-latest | ||
rust: stable | ||
- build: windows | ||
os: windows-latest | ||
rust: stable | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: bash ci/install-rust.sh ${{ matrix.rust }} | ||
- name: Build and run tests | ||
run: cargo test | ||
- name: Test no default | ||
run: cargo test --no-default-features | ||
test: | ||
name: Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
build: [stable, beta, nightly, macos, windows, msrv] | ||
include: | ||
- build: stable | ||
os: ubuntu-latest | ||
rust: stable | ||
- build: beta | ||
os: ubuntu-latest | ||
rust: beta | ||
- build: nightly | ||
os: ubuntu-latest | ||
rust: nightly | ||
- build: macos | ||
os: macos-latest | ||
rust: stable | ||
- build: windows | ||
os: windows-latest | ||
rust: stable | ||
- build: msrv | ||
os: ubuntu-20.04 | ||
# sync MSRV with docs: guide/src/guide/installation.md and Cargo.toml | ||
rust: 1.60.0 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: bash ci/install-rust.sh ${{ matrix.rust }} | ||
- name: Build and run tests | ||
run: cargo test | ||
- name: Test no default | ||
run: cargo test --no-default-features | ||
|
||
rustfmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update stable && rustup default stable && rustup component add rustfmt | ||
- run: cargo fmt --check | ||
rustfmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update stable && rustup default stable && rustup component add rustfmt | ||
- run: cargo fmt --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.