From a7601227a668d8a3a4668c4cb00ad9560cdcabd7 Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Mon, 22 Jan 2024 14:18:28 +1000 Subject: [PATCH] feat(ci): use host gpu acceleration --- .buildsystem/Dockerfile | 2 +- .github/workflows/ci.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildsystem/Dockerfile b/.buildsystem/Dockerfile index f508df3d7..d98fcab10 100644 --- a/.buildsystem/Dockerfile +++ b/.buildsystem/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER Anton Malinskiy "anton@malinskiy.com" USER root RUN apt-get update -y && \ - apt-get install -y --no-install-recommends locales git curl build-essential jq unzip zip rename openjdk-17-jdk libpulse0 xvfb fluxbox && \ + apt-get install -y --no-install-recommends locales git curl build-essential jq unzip zip rename openjdk-17-jdk libpulse0 xvfb fluxbox mesa-utils && \ locale-gen en_US.UTF-8 && \ rm -rf /var/lib/apt/lists/* diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a18032dde..185f24530 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,8 +54,8 @@ jobs: uses: malinskiy/action-android/emulator-run-cmd@release/0.1.6 timeout-minutes: 25 with: - cmd: ./gradlew :adam:integrationTest - cmdOptions: -no-snapshot-save -noaudio -no-boot-anim -cores 4 -memory 3072 -no-window -gpu off -grpc 8554 + cmd: export DISPLAY=:1; Xvfb :1 +extension GLX +extension RANDR +extension RENDER +extension XFIXES -screen 0 1024x768x24 &; fluxbox -display ":1.0" &; ./gradlew :adam:integrationTest + cmdOptions: -no-snapshot-save -noaudio -no-boot-anim -cores 4 -memory 3072 -no-window -gpu host -grpc 8554 api: ${{ matrix.api }} tag: google_apis abi: x86_64