Skip to content

Commit 4548240

Browse files
committed
Build from source.
1 parent 93635c6 commit 4548240

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/actions/setup/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ runs:
1212
run: sudo apt-get update && sudo apt-get install -y g++ cmake pkg-config libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libwayland-bin libxkbcommon-dev wayland-protocols libdecor-0-dev libegl1-mesa-dev libwayland-egl1-mesa
1313
shell: bash
1414

15+
- name: Build and install GLFW 3.4
16+
run: |
17+
git clone --depth 1 --branch 3.4 https://github.com/glfw/glfw.git /tmp/glfw
18+
cd /tmp/glfw
19+
cmake -B build -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -DGLFW_BUILD_WAYLAND=ON -DGLFW_BUILD_X11=ON
20+
cmake --build build
21+
sudo cmake --install build
22+
sudo ldconfig
23+
shell: bash
24+
1525
- name: Install Rust
1626
uses: dtolnay/rust-toolchain@stable
1727
with:

Cargo.lock

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ processing_render = { workspace = true }
3131
glfw = "0.60.0"
3232

3333
[target.'cfg(target_os = "linux")'.dev-dependencies]
34-
glfw = { version = "0.60.0", default-features = false, features = ["src-build", "static-link", "wayland", "x11", "native-handles"] }
34+
glfw = { version = "0.60.0", features = ["wayland"] }
3535

3636
[[example]]
3737
name = "rectangle"

0 commit comments

Comments
 (0)