Skip to content

Commit 32c5960

Browse files
committed
Merge branch 'main' into fix-autocomplete
2 parents b16067f + b2d01e6 commit 32c5960

86 files changed

Lines changed: 7886 additions & 5489 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 373 additions & 167 deletions
Large diffs are not rendered by default.

.github/workflows/merge.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# Attempt to backport a merged pull request to the latest stable release
2424
backport:
2525
name: Backport pull request
26-
runs-on: blacksmith-4vcpu-ubuntu-2404
26+
runs-on: warp-ubuntu-latest-x64-4x
2727

2828
# Don't run on closed unmerged pull requests, or pull requests with the "breaking" label
2929
if: github.event.pull_request.merged && !contains(github.event.pull_request.labels.*.name, 'breaking')
@@ -34,7 +34,7 @@ jobs:
3434

3535
# Upload nightly docs to the website
3636
docs:
37-
runs-on: blacksmith-4vcpu-ubuntu-2404
37+
runs-on: warp-ubuntu-latest-x64-4x
3838
permissions:
3939
contents: write
4040
steps:
@@ -47,6 +47,7 @@ jobs:
4747
- uses: Swatinem/rust-cache@v2
4848
with:
4949
cache-all-crates: "true"
50+
cache-provider: "warpbuild"
5051
save-if: ${{ github.ref == 'refs/heads/main' }}
5152

5253
- name: cargo doc

.github/workflows/promote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222

2323
jobs:
2424
promote:
25-
runs-on: blacksmith-4vcpu-ubuntu-2404
25+
runs-on: warp-ubuntu-latest-x64-4x
2626
steps:
2727
- uses: actions/checkout@v5
2828
- name: Publish the next pre-release

.github/workflows/publish.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- target: aarch64-pc-windows-msvc
5555
os: windows-latest
5656
- target: x86_64-apple-darwin
57-
os: macos-13
57+
os: macos-15-intel
5858
- target: aarch64-apple-darwin
5959
os: macos-latest
6060
- target: x86_64-unknown-linux-gnu
@@ -84,11 +84,21 @@ jobs:
8484
uses: ./.github/actions/free-disk-space
8585

8686
- uses: awalsh128/cache-apt-pkgs-action@latest
87-
if: ${{ matrix.platform.os == 'ubuntu-24.04' || matrix.platform.os == 'ubuntu-24.04-arm' }}
87+
if: ${{ matrix.platform.os == 'ubuntu-24.04' }}
8888
with:
89-
packages: libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev libglib2.0-dev musl-tools
89+
packages: pkg-config libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev libglib2.0-dev musl-tools
9090
version: 1.0
9191

92+
- name: Install Linux desktop dependencies for ARM
93+
if: ${{ matrix.platform.os == 'ubuntu-24.04-arm' }}
94+
run: |
95+
sudo apt-get update
96+
sudo apt-get install -y pkg-config libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev libglib2.0-dev musl-tools
97+
98+
- name: Verify GLib pkg-config metadata on ARM Linux
99+
if: ${{ matrix.platform.os == 'ubuntu-24.04-arm' }}
100+
run: pkg-config --modversion glib-2.0
101+
92102
- name: Install stable
93103
uses: dtolnay/rust-toolchain@master
94104
with:
Lines changed: 69 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,74 @@
1-
# This creates a 20GB dev drive, and exports all required environment
2-
# variables so that rustup, uv and others all use the dev drive as much
3-
# as possible.
4-
$Volume = New-VHD -Path C:/uv_dev_drive.vhdx -SizeBytes 20GB |
5-
Mount-VHD -Passthru |
6-
Initialize-Disk -Passthru |
7-
New-Partition -AssignDriveLetter -UseMaximumSize |
8-
Format-Volume -FileSystem ReFS -Confirm:$false -Force
1+
# Configures a dev drive for Windows CI to speed up Rust builds.
2+
#
3+
# The main performance win is disabling Windows Defender antivirus scanning
4+
# on the build drive — AV scanning every .o, .rlib, .rmeta, and .exe during
5+
# a Rust build is extremely expensive.
6+
#
7+
# Three code paths:
8+
# 1. D: drive exists (some runners) — use it directly
9+
# 2. Hyper-V available — create a Dev Drive VHD (best perf, supports fsutil devdrv)
10+
# 3. No Hyper-V (Warp/EC2 runners) — use diskpart + ReFS format
911

10-
Write-Output $Volume
12+
if (Test-Path "D:\") {
13+
Write-Output "Using existing drive at D:"
14+
$Drive = "D:"
15+
} elseif (Get-Command New-VHD -ErrorAction SilentlyContinue) {
16+
# Hyper-V is available — create a proper Dev Drive
17+
$Volume = New-VHD -Path C:/dev_drive.vhdx -SizeBytes 25GB |
18+
Mount-VHD -Passthru |
19+
Initialize-Disk -Passthru |
20+
New-Partition -AssignDriveLetter -UseMaximumSize |
21+
Format-Volume -DevDrive -Confirm:$false -Force
1122

12-
$Drive = "$($Volume.DriveLetter):"
13-
$Tmp = "$($Drive)/uv-tmp"
23+
$Drive = "$($Volume.DriveLetter):"
1424

15-
# Create the directory ahead of time in an attempt to avoid race-conditions
16-
New-Item $Tmp -ItemType Directory
25+
# Mark as trusted and disable antivirus filtering
26+
fsutil devdrv trust $Drive
27+
fsutil devdrv enable /disallowAv
28+
29+
# Remount so the changes take effect
30+
Dismount-VHD -Path C:/dev_drive.vhdx
31+
Mount-VHD -Path C:/dev_drive.vhdx
32+
33+
Write-Output $Volume
34+
fsutil devdrv query $Drive
35+
Write-Output "Created Dev Drive at $Drive"
36+
} else {
37+
# No Hyper-V — fall back to diskpart + ReFS
38+
Write-Output "No Hyper-V detected, creating ReFS drive via diskpart..."
39+
40+
$vhdPath = "C:\dev_drive.vhdx"
41+
@"
42+
create vdisk file="$vhdPath" maximum=25600 type=expandable
43+
attach vdisk
44+
create partition primary
45+
active
46+
assign letter=V
47+
"@ | diskpart
48+
49+
format V: /fs:ReFS /q /y
50+
$Drive = "V:"
51+
52+
Write-Output "Created ReFS drive at $Drive"
53+
}
54+
55+
$Tmp = "$($Drive)\tmp"
56+
57+
# Create directories ahead of time to avoid race conditions
58+
New-Item $Tmp -ItemType Directory -Force
59+
60+
# Move Cargo to the dev drive so registry/crate downloads also benefit
61+
New-Item -Path "$($Drive)/.cargo/bin" -ItemType Directory -Force
62+
if (Test-Path "C:/Users/runneradmin/.cargo") {
63+
Copy-Item -Path "C:/Users/runneradmin/.cargo/*" -Destination "$($Drive)/.cargo/" -Recurse -Force
64+
}
1765

1866
Write-Output `
19-
"DEV_DRIVE=$($Drive)" `
20-
"TMP=$($Tmp)" `
21-
"TEMP=$($Tmp)" `
22-
"RUSTUP_HOME=$($Drive)/.rustup" `
23-
"CARGO_HOME=$($Drive)/.cargo" `
24-
"UV_WORKSPACE=$($Drive)/uv" `
25-
"PATH=$($Drive)/.cargo/bin;$env:PATH" `
26-
>> $env:GITHUB_ENV
67+
"DEV_DRIVE=$($Drive)" `
68+
"TMP=$($Tmp)" `
69+
"TEMP=$($Tmp)" `
70+
"RUSTUP_HOME=$($Drive)/.rustup" `
71+
"CARGO_HOME=$($Drive)/.cargo" `
72+
"DIOXUS_WORKSPACE=$($Drive)/dioxus" `
73+
"PATH=$($Drive)/.cargo/bin;$env:PATH" `
74+
>> $env:GITHUB_ENV

.github/workflows/typos.yml

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

0 commit comments

Comments
 (0)