Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad committed Apr 14, 2024
1 parent e9f960c commit 73097ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ env:
jobs:
build:
runs-on: ${{matrix.os}}
env:
DISPLAY: ':99'
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
headless: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

steps:
- uses: actions/checkout@v3
Expand All @@ -30,6 +35,9 @@ jobs:
packages: libxtst-dev libevdev-dev libxdo-dev
version: 1.0

- name: Setup headless environment
run: ${{matrix.headless}}

- name: Add components
run: rustup component add clippy rustfmt

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ mod tests {
afrim_wish.display();

// Test the geometry.
(0..800).for_each(|i| {
if i % 100 != 0 {
(0..100).for_each(|i| {
if i % 10 != 0 {
return;
};
let i = i as f64;
Expand Down

0 comments on commit 73097ad

Please sign in to comment.