59
59
host : i686-unknown-linux-gnu
60
60
- os : windows-latest
61
61
host : x86_64-pc-windows-msvc
62
- - os : macos-latest
62
+ - os : macos-13
63
63
host : x86_64-apple-darwin
64
64
65
65
runs-on : ${{ matrix.os }}
87
87
rustup show active-toolchain
88
88
89
89
# 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
-
107
90
- name : Build
108
91
run : cargo build --tests --features deny-warnings,internal
109
92
@@ -136,7 +119,9 @@ jobs:
136
119
working-directory : clippy_dev
137
120
138
121
- 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
140
125
env :
141
126
OS : ${{ runner.os }}
142
127
@@ -236,11 +221,6 @@ jobs:
236
221
- name : Install toolchain
237
222
run : rustup show active-toolchain
238
223
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
-
244
224
# Download
245
225
- name : Download target dir
246
226
uses : actions/download-artifact@v3
@@ -254,8 +234,8 @@ jobs:
254
234
# Run
255
235
- name : Test ${{ matrix.integration }}
256
236
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
259
239
env :
260
240
INTEGRATION : ${{ matrix.integration }}
261
241
0 commit comments