Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix linux test with wayland #35

Merged
merged 3 commits into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
RUSTC_WRAPPER: sccache
CCACHE: sccache
SCCACHE_GHA_ENABLED: 'true'
WAYLAND_DISPLAY: wayland-1
WLR_BACKENDS: headless
WLR_LIBINPUT_NO_DEVICES: 1
XDG_RUNTIME_DIR: /tmp
XDG_SESSION_TYPE: wayland
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -45,7 +50,7 @@ jobs:
libgstrtspserver-1.0-dev gstreamer1.0-tools libges-1.0-dev \
libharfbuzz-dev liblzma-dev libunwind-dev libunwind-dev libvulkan1 \
libx11-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
libxmu-dev libxmu6 libegl1-mesa-dev llvm-dev m4 xorg-dev
libxmu-dev libxmu6 libegl1-mesa-dev llvm-dev m4 xorg-dev sway

- name: Run sccache-cache
uses: mozilla-actions/[email protected]
Expand All @@ -54,6 +59,12 @@ jobs:
run: |
cargo build --release

- name: Test
# Run sway(wayland compositor) in the background, winit will use it
run: |
sway > /dev/null 2>&1 &
pewsheen marked this conversation as resolved.
Show resolved Hide resolved
cargo test --release

- name: Tar Binary
if: ${{ github.event_name == 'schedule' }}
run: tar -czvf verso-x86_64-unknown-linux-gnu.tar.gz -C ./target/release/ verso
Expand Down
Loading