Skip to content

Commit bd9ca89

Browse files
Install libxcb on Linux in CI workflows and note dependencies in README.md. (PaulJuliusMartinez#67)
1 parent 346f2cd commit bd9ca89

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
override: true
2121
target: ${{ matrix.platform.target }}
2222
components: clippy, rustfmt
23+
- name: Install clipboard dependencies
24+
if: ${{ matrix.platform.os == 'ubuntu-latest' }}
25+
run: sudo apt install -y libxcb-shape0-dev libxcb-xfixes0-dev
2326
- name: Test
2427
uses: actions-rs/cargo@v1
2528
with:

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
override: true
2626
target: ${{ matrix.platform.target }}
2727
components: clippy, rustfmt
28+
- name: Install clipboard dependencies
29+
if: ${{ matrix.platform.os == 'ubuntu-latest' }}
30+
run: sudo apt install -y libxcb-shape0-dev libxcb-xfixes0-dev
2831
- name: Build
2932
uses: actions-rs/cargo@v1
3033
with:

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ source by running `cargo install jless`.
4242
The [releases](https://github.com/PaulJuliusMartinez/jless/releases)
4343
page also contains links to binaries for various architectures.
4444

45+
## Dependencies
46+
47+
On Linux systems, X11 libraries are needed to build clipboard access if
48+
building from source. On Ubuntu you can install these using:
49+
50+
```
51+
sudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
52+
```
53+
4554
## Website
4655

4756
[jless.io](https://jless.io) is the official website for `jless`. Code

0 commit comments

Comments
 (0)