Skip to content

Commit 77fb6a2

Browse files
Update CI on the stable-v0.26 branch (#2921)
* Try to fix CI (#2918) Fixes a few issues that have been cropping up: * Update `rustup` on Windows to latest to skip over the 1.24.1 installed on GitHub Actions which can fail to install. * Remove the no-longer-needed `define-llvm-env` action * Install generic llvm/lldb packges instead of specific ones that may migrate in versions over time. * cargo deny: ignore RUSTSEC-2021-0064 Transient dependencies depend on two different versions of `cpuid-bool`. This advisory does not appear to be urgent. We should review this ignore after a few weeks to see if our deps have switched over. text of the advisory: Issued May 6, 2021 Package cpuid-bool (crates.io) Type Unmaintained Details RustCrypto/utils#381 Patched no patched versions Description Please use the `cpufeatures`` crate going forward: https://github.com/RustCrypto/utils/tree/master/cpufeatures There will be no further releases of cpuid-bool. * Run CI on this branch Co-authored-by: Pat Hickey <[email protected]>
1 parent 5592358 commit 77fb6a2

File tree

6 files changed

+8
-41
lines changed

6 files changed

+8
-41
lines changed

.github/actions/define-llvm-env/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/actions/define-llvm-env/action.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/actions/define-llvm-env/main.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/actions/install-rust/main.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ function set_env(name, val) {
66
fs.appendFileSync(process.env['GITHUB_ENV'], `${name}=${val}\n`)
77
}
88

9-
if (process.platform === 'darwin') {
10-
child_process.execSync(`curl https://sh.rustup.rs | sh -s -- -y --default-toolchain=none --profile=minimal`);
11-
const bindir = `${process.env.HOME}/.cargo/bin`;
12-
fs.appendFileSync(process.env['GITHUB_PATH'], `${bindir}\n`);
13-
process.env.PATH = `${process.env.PATH}:${bindir}`;
9+
// Needed for now to get 1.24.2 which fixes a bug in 1.24.1 that causes issues
10+
// on Windows.
11+
if (process.platform === 'win32') {
12+
child_process.execFileSync('rustup', ['self', 'update']);
1413
}
1514

1615
child_process.execFileSync('rustup', ['set', 'profile', 'minimal']);

.github/workflows/main.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches: [main]
55
tags-ignore: [dev]
66
pull_request:
7-
branches: [main]
7+
branches: [main, stable-v0.26]
88
defaults:
99
run:
1010
shell: bash
@@ -233,7 +233,6 @@ jobs:
233233
- uses: ./.github/actions/install-rust
234234
with:
235235
toolchain: ${{ matrix.rust }}
236-
- uses: ./.github/actions/define-llvm-env
237236

238237
- name: Install libclang
239238
# Note: libclang is pre-installed on the macOS and linux images.
@@ -276,21 +275,18 @@ jobs:
276275
277276
# Test debug (DWARF) related functionality.
278277
- run: |
279-
sudo apt-get update && sudo apt-get install -y gdb lldb
278+
sudo apt-get update && sudo apt-get install -y gdb lldb llvm
280279
cargo test test_debug_dwarf -- --ignored --test-threads 1
281280
if: matrix.os == 'ubuntu-latest'
282281
env:
283282
RUST_BACKTRACE: 1
284-
LLDB: /usr/bin/lldb
285283
286284
# Test debug (DWARF) related functionality on new backend.
287285
- run: |
288-
sudo apt-get update && sudo apt-get install -y gdb lldb
289286
cargo test test_debug_dwarf -- --ignored --test-threads 1 --test debug::
290287
if: matrix.os == 'ubuntu-latest'
291288
env:
292289
RUST_BACKTRACE: 1
293-
LLDB: /usr/bin/lldb
294290
295291
# Test uffd functionality on Linux
296292
- run: |
@@ -310,7 +306,7 @@ jobs:
310306
RUST_BACKTRACE: 1
311307

312308
# Perform all tests (debug mode) for `wasmtime` with the old x86 backend.
313-
test_x64:
309+
test_x86:
314310
name: Test old x86 backend
315311
runs-on: ubuntu-latest
316312
steps:
@@ -320,7 +316,6 @@ jobs:
320316
- uses: ./.github/actions/install-rust
321317
with:
322318
toolchain: stable
323-
- uses: ./.github/actions/define-llvm-env
324319

325320
# Install wasm32 targets in order to build various tests throughout the
326321
# repo.

deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ vulnerability = "deny"
1414
unmaintained = "deny"
1515
yanked = "deny"
1616
ignore = [
17+
"RUSTSEC-2021-0064"
1718
]
1819

1920
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html

0 commit comments

Comments
 (0)