forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (53 loc) · 1.6 KB
/
clippy_bors.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
name: Clippy Test (bors)
on:
push:
env:
RUST_BACKTRACE: 1
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
NO_FMT_TEST: 1
CARGO_INCREMENTAL: 0
defaults:
run:
shell: bash
jobs:
base:
strategy:
matrix:
include:
- os: macos-latest
host: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
# NOTE: If you modify this job, make sure you copy the changes to clippy.yml
steps:
# Setup
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
run: |
rustup set default-host ${{ matrix.host }}
rustup show active-toolchain
# Run
- name: Link rustc dylib (MacOS)
if: runner.os == 'macOS'
run: |
SYSROOT=$(rustc --print sysroot)
sudo mkdir -p /usr/local/lib
sudo find "${SYSROOT}/lib" -maxdepth 1 -name '*dylib' -exec ln -s {} /usr/local/lib \;
- name: Test 1
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 2
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 3
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 4
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 5
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 6
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 7
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 8
run: cargo test -F internal,deny-warnings --test sigabrt
- name: Test 9
run: cargo test -F internal,deny-warnings --test sigabrt