mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: fix nightly builds (#23328)
- Bump `curve25519-dalek` to fix unstable features - Bump to llvm-17 to match latest minimum - cargo update to fix all the things that break w/llvm-17
This commit is contained in:
parent
84e198f0d0
commit
4b62cb54dd
4 changed files with 505 additions and 480 deletions
8
.github/workflows/ci.generate.ts
vendored
8
.github/workflows/ci.generate.ts
vendored
|
@ -59,9 +59,9 @@ const prCacheKeyPrefix =
|
||||||
`${cacheVersion}-cargo-target-\${{ matrix.os }}-\${{ matrix.arch }}-\${{ matrix.profile }}-\${{ matrix.job }}-`;
|
`${cacheVersion}-cargo-target-\${{ matrix.os }}-\${{ matrix.arch }}-\${{ matrix.profile }}-\${{ matrix.job }}-`;
|
||||||
|
|
||||||
// Note that you may need to add more version to the `apt-get remove` line below if you change this
|
// Note that you may need to add more version to the `apt-get remove` line below if you change this
|
||||||
const llvmVersion = 16;
|
const llvmVersion = 17;
|
||||||
const installPkgsCommand =
|
const installPkgsCommand =
|
||||||
`sudo apt-get install --no-install-recommends debootstrap clang-${llvmVersion} lld-${llvmVersion} clang-tools-${llvmVersion} clang-format-${llvmVersion} clang-tidy-${llvmVersion}`;
|
`sudo apt-get install --no-install-recommends clang-${llvmVersion} lld-${llvmVersion} clang-tools-${llvmVersion} clang-format-${llvmVersion} clang-tidy-${llvmVersion}`;
|
||||||
const sysRootStep = {
|
const sysRootStep = {
|
||||||
name: "Set up incremental LTO and sysroot build",
|
name: "Set up incremental LTO and sysroot build",
|
||||||
run: `# Setting up sysroot
|
run: `# Setting up sysroot
|
||||||
|
@ -71,7 +71,7 @@ export DEBIAN_FRONTEND=noninteractive
|
||||||
sudo apt-get -qq remove --purge -y man-db > /dev/null 2> /dev/null
|
sudo apt-get -qq remove --purge -y man-db > /dev/null 2> /dev/null
|
||||||
# Remove older clang before we install
|
# Remove older clang before we install
|
||||||
sudo apt-get -qq remove \
|
sudo apt-get -qq remove \
|
||||||
'clang-12*' 'clang-13*' 'clang-14*' 'clang-15*' 'llvm-12*' 'llvm-13*' 'llvm-14*' 'llvm-15*' 'lld-12*' 'lld-13*' 'lld-14*' 'lld-15*' > /dev/null 2> /dev/null
|
'clang-12*' 'clang-13*' 'clang-14*' 'clang-15*' 'clang-16*' 'llvm-12*' 'llvm-13*' 'llvm-14*' 'llvm-15*' 'llvm-16*' 'lld-12*' 'lld-13*' 'lld-14*' 'lld-15*' 'lld-16*' > /dev/null 2> /dev/null
|
||||||
|
|
||||||
# Install clang-XXX, lld-XXX, and debootstrap.
|
# Install clang-XXX, lld-XXX, and debootstrap.
|
||||||
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${llvmVersion} main" |
|
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${llvmVersion} main" |
|
||||||
|
@ -137,7 +137,7 @@ RUSTDOCFLAGS<<__1
|
||||||
-C link-arg=-Wl,--thinlto-cache-policy,cache_size_bytes=700m
|
-C link-arg=-Wl,--thinlto-cache-policy,cache_size_bytes=700m
|
||||||
\${{ env.RUSTFLAGS }}
|
\${{ env.RUSTFLAGS }}
|
||||||
__1
|
__1
|
||||||
CC=clang-${llvmVersion}
|
CC=/usr/bin/clang-${llvmVersion}
|
||||||
CFLAGS=-flto=thin --sysroot=/sysroot
|
CFLAGS=-flto=thin --sysroot=/sysroot
|
||||||
__0`,
|
__0`,
|
||||||
};
|
};
|
||||||
|
|
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -255,17 +255,17 @@ jobs:
|
||||||
# to complete.
|
# to complete.
|
||||||
sudo apt-get -qq remove --purge -y man-db > /dev/null 2> /dev/null
|
sudo apt-get -qq remove --purge -y man-db > /dev/null 2> /dev/null
|
||||||
# Remove older clang before we install
|
# Remove older clang before we install
|
||||||
sudo apt-get -qq remove 'clang-12*' 'clang-13*' 'clang-14*' 'clang-15*' 'llvm-12*' 'llvm-13*' 'llvm-14*' 'llvm-15*' 'lld-12*' 'lld-13*' 'lld-14*' 'lld-15*' > /dev/null 2> /dev/null
|
sudo apt-get -qq remove 'clang-12*' 'clang-13*' 'clang-14*' 'clang-15*' 'clang-16*' 'llvm-12*' 'llvm-13*' 'llvm-14*' 'llvm-15*' 'llvm-16*' 'lld-12*' 'lld-13*' 'lld-14*' 'lld-15*' 'lld-16*' > /dev/null 2> /dev/null
|
||||||
|
|
||||||
# Install clang-XXX, lld-XXX, and debootstrap.
|
# Install clang-XXX, lld-XXX, and debootstrap.
|
||||||
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" |
|
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" |
|
||||||
sudo dd of=/etc/apt/sources.list.d/llvm-toolchain-jammy-16.list
|
sudo dd of=/etc/apt/sources.list.d/llvm-toolchain-jammy-17.list
|
||||||
curl https://apt.llvm.org/llvm-snapshot.gpg.key |
|
curl https://apt.llvm.org/llvm-snapshot.gpg.key |
|
||||||
gpg --dearmor |
|
gpg --dearmor |
|
||||||
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
sudo dd of=/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
# this was unreliable sometimes, so try again if it fails
|
# this was unreliable sometimes, so try again if it fails
|
||||||
sudo apt-get install --no-install-recommends debootstrap clang-16 lld-16 clang-tools-16 clang-format-16 clang-tidy-16 || echo 'Failed. Trying again.' && sudo apt-get clean && sudo apt-get update && sudo apt-get install --no-install-recommends debootstrap clang-16 lld-16 clang-tools-16 clang-format-16 clang-tidy-16
|
sudo apt-get install --no-install-recommends clang-17 lld-17 clang-tools-17 clang-format-17 clang-tidy-17 || echo 'Failed. Trying again.' && sudo apt-get clean && sudo apt-get update && sudo apt-get install --no-install-recommends clang-17 lld-17 clang-tools-17 clang-format-17 clang-tidy-17
|
||||||
# Fix alternatives
|
# Fix alternatives
|
||||||
(yes '' | sudo update-alternatives --force --all) > /dev/null 2> /dev/null || true
|
(yes '' | sudo update-alternatives --force --all) > /dev/null 2> /dev/null || true
|
||||||
|
|
||||||
|
@ -300,8 +300,8 @@ jobs:
|
||||||
CARGO_PROFILE_RELEASE_LTO=false
|
CARGO_PROFILE_RELEASE_LTO=false
|
||||||
RUSTFLAGS<<__1
|
RUSTFLAGS<<__1
|
||||||
-C linker-plugin-lto=true
|
-C linker-plugin-lto=true
|
||||||
-C linker=clang-16
|
-C linker=clang-17
|
||||||
-C link-arg=-fuse-ld=lld-16
|
-C link-arg=-fuse-ld=lld-17
|
||||||
-C link-arg=--sysroot=/sysroot
|
-C link-arg=--sysroot=/sysroot
|
||||||
-C link-arg=-ldl
|
-C link-arg=-ldl
|
||||||
-C link-arg=-Wl,--allow-shlib-undefined
|
-C link-arg=-Wl,--allow-shlib-undefined
|
||||||
|
@ -312,8 +312,8 @@ jobs:
|
||||||
__1
|
__1
|
||||||
RUSTDOCFLAGS<<__1
|
RUSTDOCFLAGS<<__1
|
||||||
-C linker-plugin-lto=true
|
-C linker-plugin-lto=true
|
||||||
-C linker=clang-16
|
-C linker=clang-17
|
||||||
-C link-arg=-fuse-ld=lld-16
|
-C link-arg=-fuse-ld=lld-17
|
||||||
-C link-arg=--sysroot=/sysroot
|
-C link-arg=--sysroot=/sysroot
|
||||||
-C link-arg=-ldl
|
-C link-arg=-ldl
|
||||||
-C link-arg=-Wl,--allow-shlib-undefined
|
-C link-arg=-Wl,--allow-shlib-undefined
|
||||||
|
@ -321,7 +321,7 @@ jobs:
|
||||||
-C link-arg=-Wl,--thinlto-cache-policy,cache_size_bytes=700m
|
-C link-arg=-Wl,--thinlto-cache-policy,cache_size_bytes=700m
|
||||||
${{ env.RUSTFLAGS }}
|
${{ env.RUSTFLAGS }}
|
||||||
__1
|
__1
|
||||||
CC=clang-16
|
CC=/usr/bin/clang-17
|
||||||
CFLAGS=-flto=thin --sysroot=/sysroot
|
CFLAGS=-flto=thin --sysroot=/sysroot
|
||||||
__0
|
__0
|
||||||
- name: Remove macOS cURL --ipv4 flag
|
- name: Remove macOS cURL --ipv4 flag
|
||||||
|
|
952
Cargo.lock
generated
952
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -173,7 +173,8 @@ tokio = { version = "1.36.0", features = ["full"] }
|
||||||
tokio-metrics = { version = "0.3.0", features = ["rt"] }
|
tokio-metrics = { version = "0.3.0", features = ["rt"] }
|
||||||
tokio-util = "0.7.4"
|
tokio-util = "0.7.4"
|
||||||
tower-lsp = { version = "=0.20.0", features = ["proposed"] }
|
tower-lsp = { version = "=0.20.0", features = ["proposed"] }
|
||||||
url = { version = "2.3.1", features = ["serde", "expose_internals"] }
|
# Upgrading past 2.4.1 may cause WPT failures
|
||||||
|
url = { version = "< 2.5.0", features = ["serde", "expose_internals"] }
|
||||||
uuid = { version = "1.3.0", features = ["v4"] }
|
uuid = { version = "1.3.0", features = ["v4"] }
|
||||||
webpki-roots = "0.25.2"
|
webpki-roots = "0.25.2"
|
||||||
zeromq = { version = "=0.3.4", default-features = false, features = ["tcp-transport", "tokio-runtime"] }
|
zeromq = { version = "=0.3.4", default-features = false, features = ["tcp-transport", "tokio-runtime"] }
|
||||||
|
@ -227,6 +228,10 @@ opt-level = 'z' # Optimize for size
|
||||||
[profile.dev.package.num-bigint-dig]
|
[profile.dev.package.num-bigint-dig]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
||||||
|
# rusty-v8 needs at least -O1 to not miscompile
|
||||||
|
[profile.dev.package.v8]
|
||||||
|
opt-level = 1
|
||||||
|
|
||||||
# Optimize these packages for performance.
|
# Optimize these packages for performance.
|
||||||
# NB: the `bench` and `release` profiles must remain EXACTLY the same.
|
# NB: the `bench` and `release` profiles must remain EXACTLY the same.
|
||||||
[profile.bench.package.rand]
|
[profile.bench.package.rand]
|
||||||
|
|
Loading…
Reference in a new issue