1313 description : " ID of the artifact containing libraries compiled with sanitizers"
1414 value : ${{ jobs.build_with_sanitizers.outputs.libs }}
1515
16+ permissions : {}
17+
1618jobs :
1719 download_sqlite :
1820 runs-on : ubuntu-slim
1921 name : Download SQLite sources
2022 steps :
2123 - uses : actions/checkout@v6
24+ with :
25+ persist-credentials : false
2226 - uses : actions/cache@v5
2327 id : cache_build
2428 with :
5155 name : Compile sqlite3
5256 steps :
5357 - uses : actions/checkout@v6
58+ with :
59+ persist-credentials : false
5460 - uses : actions/cache@v5
5561 id : cache_build
5662 with :
95101 libs : ${{ steps.upload.outputs.artifact-id }}
96102 steps :
97103 - uses : actions/checkout@v6
104+ with :
105+ persist-credentials : false
98106 - uses : actions/cache@v5
99107 id : cache_build
100108 with :
@@ -110,11 +118,9 @@ jobs:
110118 - uses : dart-lang/setup-dart@v1
111119 if : steps.cache_build.outputs.cache-hit != 'true'
112120
113- - uses : dtolnay/ rust-toolchain@stable
121+ - name : Install rust
114122 if : steps.cache_build.outputs.cache-hit != 'true'
115- with :
116- toolchain : nightly
117- components : rust-src
123+ run : rustup toolchain install nightly --component rust-src
118124
119125 - name : Install LLVM toolchain
120126 shell : bash
@@ -147,6 +153,8 @@ jobs:
147153 runs-on : ubuntu-latest
148154 steps :
149155 - uses : actions/checkout@v6
156+ with :
157+ persist-credentials : false
150158 - uses : actions/cache@v5
151159 id : cache_build
152160 with :
@@ -156,19 +164,19 @@ jobs:
156164 # clang 18 that ships on ubuntu crashes when compiling the wasm sources
157165 - name : Install LLVM and Clang
158166 if : steps.cache_build.outputs.cache-hit != 'true'
159- uses : KyleMayes/install-llvm-action@v2.0.9
167+ uses : KyleMayes/install-llvm-action@ebc0426251bc40c7cd31162802432c68818ab8f0 # v2.0.9
160168 with :
161169 version : " 21"
162170
163171 - name : Download WASI SDK
164172 if : steps.cache_build.outputs.cache-hit != 'true'
165173 run : |
166- ls -al ${{ env. LLVM_PATH } }
174+ ls -al ${LLVM_PATH}
167175
168176 curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-27/wasi-sdk-27.0-x86_64-linux.deb -o wasi-sdk.deb
169177 sudo dpkg -i wasi-sdk.deb
170178 sudo mkdir /usr/lib/llvm-18/lib/clang/18/lib/wasi
171- sudo cp -r /opt/wasi-sdk/lib/clang/20/lib/* ${{ env. LLVM_PATH } }/lib/clang/21/lib/
179+ sudo cp -r /opt/wasi-sdk/lib/clang/20/lib/* ${LLVM_PATH}/lib/clang/21/lib/
172180
173181 curl -L https://github.com/WebAssembly/binaryen/releases/download/version_124/binaryen-version_124-x86_64-linux.tar.gz -o binaryen.tar.gz
174182 tar --extract --gzip --file binaryen.tar.gz
@@ -196,17 +204,28 @@ jobs:
196204 runs-on : ubuntu-latest
197205 steps :
198206 - uses : actions/checkout@v6
207+ with :
208+ persist-credentials : false
199209 - uses : actions/cache@v5
200210 id : cache_build
201211 with :
202212 path : sqlite3_connection_pool/out
203213 key : pool-helper-${{ runner.os }}-${{ hashFiles('sqlite3_connection_pool/src/**', 'sqlite3_connection_pool/Cargo.toml', 'sqlite3_connection_pool/.cargo/**') }}
204- - uses : dtolnay/ rust-toolchain@stable
214+ - name : Install rust
205215 if : steps.cache_build.outputs.cache-hit != 'true'
206- with :
207- toolchain : nightly
208- components : rust-src
209- targets : aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu,riscv64gc-unknown-linux-gnu,armv7-unknown-linux-gnueabihf,aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android
216+ run : |
217+ rustup toolchain install nightly --component rust-src
218+ rustup target add --toolchain nightly aarch64-unknown-linux-gnu
219+ rustup target add --toolchain nightly x86_64-unknown-linux-gnu
220+ rustup target add --toolchain nightly riscv64gc-unknown-linux-gnu
221+
222+ rustup target add --toolchain nightly armv7-unknown-linux-gnueabihf
223+ rustup target add --toolchain nightly aarch64-linux-android
224+ rustup target add --toolchain nightly armv7-linux-androideabi
225+ rustup target add --toolchain nightly x86_64-linux-android
226+ - name : Install rust
227+ if : steps.cache_build.outputs.cache-hit != 'true'
228+ run : rustup toolchain install nightly --component rust-src
210229 - run : cargo install cargo-ndk
211230 if : steps.cache_build.outputs.cache-hit != 'true'
212231 - name : Install cross-compiling GCC
@@ -251,17 +270,19 @@ jobs:
251270 runs-on : macos-latest
252271 steps :
253272 - uses : actions/checkout@v6
273+ with :
274+ persist-credentials : false
254275 - uses : actions/cache@v5
255276 id : cache_build
256277 with :
257278 path : sqlite3_connection_pool/out
258279 key : pool-helper-${{ runner.os }}-${{ hashFiles('sqlite3_connection_pool/src/**', 'sqlite3_connection_pool/Cargo.toml', 'sqlite3_connection_pool/.cargo/**') }}
259- - uses : dtolnay/ rust-toolchain@stable
280+ - name : Install rust
260281 if : steps.cache_build.outputs.cache-hit != 'true'
261- with :
262- toolchain : nightly
263- components : rust-src
264- targets : x86_64-apple-darwin, aarch64-apple-darwin
282+ run : |
283+ rustup toolchain install nightly --component rust-src
284+ rustup target add --toolchain nightly x86_64-apple-darwin
285+ rustup target add --toolchain nightly aarch64-apple-darwin
265286 - name : Build for macOS and iOS
266287 if : steps.cache_build.outputs.cache-hit != 'true'
267288 working-directory : sqlite3_connection_pool
@@ -289,17 +310,19 @@ jobs:
289310 runs-on : windows-latest
290311 steps :
291312 - uses : actions/checkout@v6
313+ with :
314+ persist-credentials : false
292315 - uses : actions/cache@v5
293316 id : cache_build
294317 with :
295318 path : sqlite3_connection_pool/out
296319 key : pool-helper-${{ runner.os }}-${{ hashFiles('sqlite3_connection_pool/src/**', 'sqlite3_connection_pool/Cargo.toml', 'sqlite3_connection_pool/.cargo/**') }}
297- - uses : dtolnay/ rust-toolchain@stable
320+ - name : Install rust
298321 if : steps.cache_build.outputs.cache-hit != 'true'
299- with :
300- toolchain : nightly
301- components : rust-src
302- targets : x86_64-pc-windows-msvc, aarch64-pc-windows-msvc
322+ run : |
323+ rustup toolchain install nightly --component rust-src
324+ rustup target add --toolchain nightly x86_64-pc-windows-msvc
325+ rustup target add --toolchain nightly aarch64-pc-windows-msvc
303326 - name : Build for Windows
304327 if : steps.cache_build.outputs.cache-hit != 'true'
305328 working-directory : sqlite3_connection_pool
@@ -339,6 +362,8 @@ jobs:
339362
340363 steps :
341364 - uses : actions/checkout@v6
365+ with :
366+ persist-credentials : false
342367
343368 - uses : actions/download-artifact@v8
344369 with :
0 commit comments