Add GitHub Actions workflow for X11-only builds#1
Conversation
Co-authored-by: xixi230 <200480298+xixi230@users.noreply.github.com>
Co-authored-by: xixi230 <200480298+xixi230@users.noreply.github.com>
Co-authored-by: xixi230 <200480298+xixi230@users.noreply.github.com>
Co-authored-by: xixi230 <200480298+xixi230@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a new GitHub Actions workflow for manually triggered X11-only builds of eww. The workflow produces downloadable artifacts without Wayland dependencies, allowing users to build X11-specific binaries on demand.
Changes:
- Added
.github/workflows/build-x11.ymlwith manual trigger support - Configured X11-specific dependencies (excluding
libgtk-layer-shell-dev) - Set up artifact upload for distributing compiled
ewwbinaries
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
There was a problem hiding this comment.
Consider adding Rust compilation caching to significantly reduce build times for subsequent runs. The main build.yml workflow uses Swatinem/rust-cache@v2 after the Rust setup step, which caches compiled dependencies. Without caching, every workflow run will recompile all dependencies from scratch, potentially taking 10-15 minutes each time. Adding the cache step would reduce subsequent builds to just a few minutes.
| - name: Cache Rust build | |
| uses: Swatinem/rust-cache@v2 | |
Description
Adds
.github/workflows/build-x11.ymlfor manually triggered X11-only release builds. Produces downloadableeww-x11-linuxartifact without Wayland dependencies.Key changes:
workflow_dispatchtrigger for on-demand buildslibgtk-layer-shell-dev)--no-default-features --features x11 --lockedfor reproducible X11-only binariespermissions: contents: readfor securityUsage
Trigger from Actions tab → "Build eww for X11" → Run workflow. Artifact available after ~10-15min build.
Showcase
N/A - Infrastructure change
Additional Notes
Complements existing
build.ymlCI checks. Does not replace default feature builds.Checklist
docs/content/maindirectory has been adjusted to reflect my changes.cargo fmtto automatically format all code before committingOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.