| 1 |
name: CI |
| 2 |
on: |
| 3 |
pull_request: |
| 4 |
push: |
| 5 |
branches: ["master", "staging", "trying"] |
| 6 |
|
| 7 |
env: |
| 8 |
CARGO_INCREMENTAL: 0 |
| 9 |
CARGO_NET_RETRY: 10 |
| 10 |
CI: 1 |
| 11 |
RUST_BACKTRACE: short |
| 12 |
RUSTFLAGS: -D warnings |
| 13 |
RUSTUP_MAX_RETRIES: 10 |
| 14 |
|
| 15 |
jobs: |
| 16 |
test: |
| 17 |
name: Rust |
| 18 |
runs-on: ubuntu-latest |
| 19 |
|
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v2 |
| 22 |
with: |
| 23 |
fetch-depth: 0 # fetch tags for publish |
| 24 |
- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 |
| 25 |
- run: cargo run -p xtask -- ci |
| 26 |
env: |
| 27 |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} |
| 28 |
MIRIFLAGS: -Zmiri-strict-provenance |