Skip to content

Auto merge of #219 - michaelwoerister:prepare-release-11.0.0, r=micha… #131

Auto merge of #219 - michaelwoerister:prepare-release-11.0.0, r=micha…

Auto merge of #219 - michaelwoerister:prepare-release-11.0.0, r=micha… #131

Workflow file for this run

name: Rust
on:
push:
branches: [
master,
auto, # used for bors
try # used for bors
]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build_stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose --all
- name: Run tests
run: cargo test --verbose --all
- name: Docs
run: cargo doc --verbose --all
build_beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: beta
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all
- uses: actions-rs/cargo@v1
with:
command: doc
args: --verbose --all
build_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all -Zcheck-cfg
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all -Zcheck-cfg
- uses: actions-rs/cargo@v1
with:
command: doc
args: --verbose --all
check_big_endian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: powerpc64-unknown-linux-gnu
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --verbose --lib --bins --tests
# These jobs doesn't actually test anything, but they're only used to tell
# bors the build completed, as there is no practical way to detect when a
# workflow is successful listening to webhooks only.
#
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
end-success:
name: bors build finished
runs-on: ubuntu-latest
needs: [build_stable, build_beta, build_nightly, check_big_endian]
if: github.event.pusher.name == 'bors' && success()
steps:
- name: mark the job as a success
run: exit 0
end-failure:
name: bors build finished
runs-on: ubuntu-latest
needs: [build_stable, build_beta, build_nightly, check_big_endian]
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
steps:
- name: mark the job as a failure
run: exit 1