From bfe1ddad08419ceb692b8f13b6df0d5eadaf18d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sverre=20Johann=20Bj=C3=B8rke?= Date: Tue, 12 Mar 2024 23:32:09 +0100 Subject: [PATCH] try macos --- .github/workflows/take_screenshot.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/take_screenshot.yml b/.github/workflows/take_screenshot.yml index d2c37f0..a2af83b 100644 --- a/.github/workflows/take_screenshot.yml +++ b/.github/workflows/take_screenshot.yml @@ -10,12 +10,10 @@ env: DISPLAY: :99 SLINT_FULLSCREEN: 1 RUST_LOG: debug - SLINT_BACKEND: linuxkms-skia-vulkan - SLINT_DRM_OUTPUT: list jobs: build: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v3 @@ -44,23 +42,17 @@ jobs: key: ${{ runner.os }}-cargo-build-target-foo-${{ hashFiles('**/Cargo.lock') }} - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y xvfb x11-apps scrot imagemagick libxkbcommon-x11-0 + run: brew install imagemagick - name: Build run: cargo build --release - - name: Start Xvfb + - name: Run and take screenshot run: | - Xvfb :99 -screen 0 768x1024x24 & > /dev/null 2>&1 & - sleep 5 cargo run --release > cargo.log 2>&1 & sleep 30 cat cargo.log - xwd -root -out screenshot.xwd - convert screenshot.xwd fooPoop.png - scrot screenshot.png + screencapture -x screenshot.png - name: Commit and push screenshot run: | @@ -68,4 +60,4 @@ jobs: git config --local user.name "GitHub Action" git add . git commit -m "Add screenshot" -a - git push + git push \ No newline at end of file