File tree 2 files changed +66
-0
lines changed
2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 73
73
run : .github/driver.sh
74
74
env :
75
75
OS : ${{ runner.os }}
76
+
77
+ base-2024 :
78
+ # NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml
79
+ runs-on : ubuntu-latest
80
+
81
+ steps :
82
+ # Setup
83
+ - name : Checkout
84
+ uses : actions/checkout@v4
85
+
86
+ - name : Select Rust 2024 edition
87
+ run : |
88
+ for i in clippy_config clippy_dev clippy_lints clippy_utils lintcheck; do
89
+ sed -i \
90
+ -e '1icargo-features = ["edition2024"]' \
91
+ -e 's/edition = "2021"/edition = "2024"/' \
92
+ $i/Cargo.toml
93
+ done
94
+
95
+ - name : Install toolchain
96
+ run : rustup show active-toolchain
97
+
98
+ # Run
99
+ - name : Build
100
+ run : cargo build --tests --features internal
101
+
102
+ - name : Test
103
+ run : cargo test --features internal
104
+
105
+ - name : Test clippy_lints
106
+ run : cargo test --features internal
107
+ working-directory : clippy_lints
108
+
109
+ - name : Test clippy_utils
110
+ run : cargo test
111
+ working-directory : clippy_utils
112
+
113
+ - name : Test rustc_tools_util
114
+ run : cargo test
115
+ working-directory : rustc_tools_util
116
+
117
+ - name : Test clippy_dev
118
+ run : cargo test
119
+ working-directory : clippy_dev
120
+
121
+ - name : Test clippy-driver
122
+ run : .github/driver.sh
123
+ env :
124
+ OS : ${{ runner.os }}
Original file line number Diff line number Diff line change @@ -57,12 +57,19 @@ jobs:
57
57
include :
58
58
- os : ubuntu-latest
59
59
host : x86_64-unknown-linux-gnu
60
+ edition : 2021
61
+ - os : ubuntu-latest
62
+ host : x86_64-unknown-linux-gnu
63
+ edition : 2024
60
64
- os : ubuntu-latest
61
65
host : i686-unknown-linux-gnu
66
+ edition : 2021
62
67
- os : windows-latest
63
68
host : x86_64-pc-windows-msvc
69
+ edition : 2021
64
70
- os : macos-13
65
71
host : x86_64-apple-darwin
72
+ edition : 2021
66
73
67
74
runs-on : ${{ matrix.os }}
68
75
79
86
sudo apt-get update
80
87
sudo apt-get install gcc-multilib zlib1g-dev:i386
81
88
89
+ - name : Select Rust 2024 edition
90
+ if : matrix.edition == 2024
91
+ run : |
92
+ for i in clippy_config clippy_dev clippy_lints clippy_utils lintcheck; do
93
+ sed -i \
94
+ -e '1icargo-features = ["edition2024"]' \
95
+ -e 's/edition = "2021"/edition = "2024"/' \
96
+ $i/Cargo.toml
97
+ done
98
+
82
99
- name : Install toolchain
83
100
run : |
84
101
rustup set default-host ${{ matrix.host }}
You can’t perform that action at this time.
0 commit comments