Skip to content

Add initial offline build instructions#206

Merged
jschwe merged 8 commits intomainfrom
offline-builds
Feb 28, 2026
Merged

Add initial offline build instructions#206
jschwe merged 8 commits intomainfrom
offline-builds

Conversation

@jschwe
Copy link
Copy Markdown
Member

@jschwe jschwe commented Feb 23, 2026

Release v0.0.5 is the first release which contains the artifact (artifact uploaded manually, future releases will directly add it from CI)

Testing:

# in the servo repository create a new clean worktree based on latest main
git worktree add ../servo-vendor-testing
cd ../servo-vendor-testing
# Create a vendored tar-ball (which would be provided by a servo release)
./etc/vendor_servo.py
mkdir ../offline-servo
cd ../offline-servo
# Extracts the tarball into the current directory
tar -xf ../servo-vendor-testing/servo.tar.gz
uv sync
# Now disconnect the internet and build (assuming bootstrap was run before on the machine)
./mach build

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Copy link
Copy Markdown
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice! Just some copyediting suggestions.

Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Comment thread src/SUMMARY.md Outdated
Comment thread src/building/offline-builds.md Outdated
jschwe and others added 2 commits February 24, 2026 19:21
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Copy link
Copy Markdown
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but one general note before landing. Each sentence should be a single line according to the book style guide (see https://book.servo.org/contributing/style-guide.html#servo-book). Please do that before landing. Thanks!

Minor nits below.

Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
Comment thread src/building/offline-builds.md Outdated
github-merge-queue Bot pushed a commit to servo/servo that referenced this pull request Feb 26, 2026
Add a job to the release workflow which uploads a source code archive
including our vendored rust dependencies. This allows offline builds
after downloading the archive and will also be documented in the book
(see servo/book#206).

Testing: Manually tested by triggering a release on the nightly repo:
https://github.com/servo/servo/actions/runs/22405488357/job/64863992613

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
github-merge-queue Bot pushed a commit to servo/servo that referenced this pull request Feb 26, 2026
Add a job to the release workflow which uploads a source code archive
including our vendored rust dependencies. This allows offline builds
after downloading the archive and will also be documented in the book
(see servo/book#206).

Testing: Manually tested by triggering a release on the nightly repo:
https://github.com/servo/servo/actions/runs/22405488357/job/64863992613

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
github-merge-queue Bot pushed a commit to servo/servo that referenced this pull request Feb 26, 2026
Add a job to the release workflow which uploads a source code archive
including our vendored rust dependencies. This allows offline builds
after downloading the archive and will also be documented in the book
(see servo/book#206).

Testing: Manually tested by triggering a release on the nightly repo:
https://github.com/servo/servo/actions/runs/22405488357/job/64863992613

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
jschwe and others added 3 commits February 26, 2026 10:35
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Comment thread src/building/offline-builds.md Outdated
@@ -0,0 +1,46 @@
# Building Offline

Servo releases provide a `servo-<release-tag>-src-vendor.tar.gz` artifact which contains Servo's source code and all Rust dependencies vendored.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the asset name to the one currently created by the release workflow. We can still change it. I'm not super happy with the src-vendor suffix, but I think we do need something to indicate that it contains both the sources and vendored sources. Open for suggestions. CC @mrobinson @jdm

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think src-vendored sounds clear.

jschwe added a commit to servo/servo that referenced this pull request Feb 28, 2026
As suggested in servo/book#206 (comment)

Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Comment thread src/building/offline-builds.md Outdated
github-merge-queue Bot pushed a commit to servo/servo that referenced this pull request Feb 28, 2026
As suggested in
servo/book#206 (comment)

Testing: Not tested, just used grep.

Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
@jschwe jschwe added this pull request to the merge queue Feb 28, 2026
Merged via the queue into main with commit f05cb05 Feb 28, 2026
shubhamg13 pushed a commit to shubhamg13/servo that referenced this pull request Mar 2, 2026
Add a job to the release workflow which uploads a source code archive
including our vendored rust dependencies. This allows offline builds
after downloading the archive and will also be documented in the book
(see servo/book#206).

Testing: Manually tested by triggering a release on the nightly repo:
https://github.com/servo/servo/actions/runs/22405488357/job/64863992613

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
simonwuelker pushed a commit to simonwuelker/servo that referenced this pull request Mar 3, 2026
As suggested in
servo/book#206 (comment)

Testing: Not tested, just used grep.

Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants