-
Notifications
You must be signed in to change notification settings - Fork 12
72 lines (64 loc) · 1.61 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This file has to be kept in sync with `rust_bors.yml`
name: Rust
on:
push:
# Don't run tests, when only text files were modified
paths-ignore:
- 'COPYRIGHT'
- 'LICENSE-*'
- '**.md'
- '**.txt'
# Bors magic branches, these are covered by `rust_bors`
branches-ignore:
- '**.tmp'
- 'staging'
- 'trying'
- 'master'
pull_request:
# Don't run tests, when only text files were modified
paths-ignore:
- 'COPYRIGHT'
- 'LICENSE-*'
- '**.md'
- '**.txt'
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
RUSTDOCFLAGS: "-Dwarnings"
RUSTFLAGS: "-Dwarnings"
jobs:
rust:
runs-on: ubuntu-latest
# Setup
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-01
components: cargo, clippy, rustfmt
- run: rustc -vV
- run: cargo build
# Tests
- run: cargo test
- run: cargo clippy
- run: cargo fmt --check
- run: cargo doc
# This task ensures, required packages can be build with a stable toolchain
# the only package requiring nightly should be `marker_rustc_driver` and
# optionally `marker_adapter`
rust-crates-build-stable:
runs-on: ubuntu-latest
# Setup
steps:
- uses: actions/checkout@v3
- run: rm rust-toolchain
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: cargo
- run: rustc -vV
# Test
- run: cargo build --package cargo_marker
- run: cargo build --package marker_api
- run: cargo build --package marker_utils
- run: cargo build --package marker_uitest