5959 host : i686-unknown-linux-gnu
6060 - os : windows-latest
6161 host : x86_64-pc-windows-msvc
62- - os : macos-latest
62+ - os : macos-13
6363 host : x86_64-apple-darwin
6464
6565 runs-on : ${{ matrix.os }}
8787 rustup show active-toolchain
8888
8989 # Run
90- - name : Set LD_LIBRARY_PATH (Linux)
91- if : runner.os == 'Linux'
92- run : |
93- SYSROOT=$(rustc --print sysroot)
94- echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
95- - name : Link rustc dylib (MacOS)
96- if : runner.os == 'macOS'
97- run : |
98- SYSROOT=$(rustc --print sysroot)
99- sudo mkdir -p /usr/local/lib
100- sudo find "${SYSROOT}/lib" -maxdepth 1 -name '*dylib' -exec ln -s {} /usr/local/lib \;
101- - name : Set PATH (Windows)
102- if : runner.os == 'Windows'
103- run : |
104- SYSROOT=$(rustc --print sysroot)
105- echo "$SYSROOT/bin" >> $GITHUB_PATH
106-
10790 - name : Build
10891 run : cargo build --tests --features deny-warnings,internal
10992
@@ -136,7 +119,9 @@ jobs:
136119 working-directory : clippy_dev
137120
138121 - name : Test clippy-driver
139- run : bash .github/driver.sh
122+ run : |
123+ TOOLCHAIN=$(rustup show active-toolchain | cut -f1 -d' ')
124+ rustup run $TOOLCHAIN bash .github/driver.sh
140125 env :
141126 OS : ${{ runner.os }}
142127
@@ -236,11 +221,6 @@ jobs:
236221 - name : Install toolchain
237222 run : rustup show active-toolchain
238223
239- - name : Set LD_LIBRARY_PATH
240- run : |
241- SYSROOT=$(rustc --print sysroot)
242- echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
243-
244224 # Download
245225 - name : Download target dir
246226 uses : actions/download-artifact@v3
@@ -254,8 +234,8 @@ jobs:
254234 # Run
255235 - name : Test ${{ matrix.integration }}
256236 run : |
257- RUSTUP_TOOLCHAIN=" $(rustup show active-toolchain | grep -o -E "nightly-[0-9]{4}-[0-9]{2}-[0-9]{2}")" \
258- $CARGO_TARGET_DIR/debug/integration --show-output
237+ TOOLCHAIN= $(rustup show active-toolchain | cut -f1 -d' ')
238+ rustup run $TOOLCHAIN $CARGO_TARGET_DIR/debug/integration --show-output
259239 env :
260240 INTEGRATION : ${{ matrix.integration }}
261241
0 commit comments