File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 7373 run : .github/driver.sh
7474 env :
7575 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:
5757 include :
5858 - os : ubuntu-latest
5959 host : x86_64-unknown-linux-gnu
60+ edition : 2021
61+ - os : ubuntu-latest
62+ host : x86_64-unknown-linux-gnu
63+ edition : 2024
6064 - os : ubuntu-latest
6165 host : i686-unknown-linux-gnu
66+ edition : 2021
6267 - os : windows-latest
6368 host : x86_64-pc-windows-msvc
69+ edition : 2021
6470 - os : macos-13
6571 host : x86_64-apple-darwin
72+ edition : 2021
6673
6774 runs-on : ${{ matrix.os }}
6875
7986 sudo apt-get update
8087 sudo apt-get install gcc-multilib zlib1g-dev:i386
8188
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+
8299 - name : Install toolchain
83100 run : |
84101 rustup set default-host ${{ matrix.host }}
You can’t perform that action at this time.
0 commit comments