File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Continuous Integration Checks
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ strategy :
8+ matrix :
9+ toolchain : [ stable, beta ]
10+ include :
11+ - toolchain : stable
12+ check-fmt : true
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout source code
16+ uses : actions/checkout@v2
17+ - name : Install Rust ${{ matrix.toolchain }} toolchain
18+ uses : actions-rs/toolchain@v1
19+ with :
20+ toolchain : ${{ matrix.toolchain }}
21+ override : true
22+ profile : minimal
23+ - name : Build on Rust ${{ matrix.toolchain }}
24+ run : cargo build --verbose --color always
25+ - name : Check formatting
26+ if : matrix.check-fmt
27+ run : rustup component add rustfmt && cargo fmt --all -- --check
28+ - name : Test on Rust ${{ matrix.toolchain }}
29+ run : cargo test
Original file line number Diff line number Diff line change 1+ hard_tabs = true # use tab characters for indentation, spaces for alignment
2+ use_field_init_shorthand = true
3+ max_width = 120
4+ use_small_heuristics = " Max"
5+ fn_args_layout = " Compressed"
You can’t perform that action at this time.
0 commit comments