From fae5727dea63b2cc574ae6af820ab699bf72294c Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Wed, 21 Feb 2024 21:08:03 -0500 Subject: [PATCH 1/2] Upgrade ubuntu, citra, and use Vulkan renderer --- run-tests/Dockerfile | 13 ++++++++----- run-tests/docker/sdl2-config.ini | 5 +++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/run-tests/Dockerfile b/run-tests/Dockerfile index aa95b1d..a87bd1f 100644 --- a/run-tests/Dockerfile +++ b/run-tests/Dockerfile @@ -5,7 +5,7 @@ COPY ./docker/download_citra.sh /usr/local/bin/download_citra RUN apt-get update -y && apt-get install -y jq ARG CITRA_CHANNEL=nightly -ARG CITRA_RELEASE=1995 +ARG CITRA_RELEASE=2098 RUN download_citra ${CITRA_CHANNEL} ${CITRA_RELEASE} FROM devkitpro/devkitarm:latest as devkitarm @@ -17,15 +17,18 @@ RUN cd /opt/devkitpro/examples/3ds/graphics/printing/hello-world && \ make && \ mv hello-world.3dsx /tmp/ -FROM ubuntu:latest +FROM ubuntu:mantic RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \ apt-get update -y && \ apt-get install -y \ - libswscale5 \ + libavfilter9 \ + libavformat60 \ + libavutil58 \ libsdl2-2.0-0 \ - libavformat58 \ - libavfilter7 \ + libswscale7 \ + mesa-vulkan-drivers \ + vulkan-tools \ xvfb COPY --from=devkitarm /opt/devkitpro /opt/devkitpro diff --git a/run-tests/docker/sdl2-config.ini b/run-tests/docker/sdl2-config.ini index 3aeb006..cd0f08c 100644 --- a/run-tests/docker/sdl2-config.ini +++ b/run-tests/docker/sdl2-config.ini @@ -1,3 +1,8 @@ +# OpenGL renderer seems to crash so we force using vulkan: +# https://github.com/rust3ds/test-runner/issues/16 +[Renderer] +graphics_api = 2 + [Miscellaneous] log_filter = *:Info Debug.Emulated:Debug From 98a8ed44057c2100447f0f6547c0de1e14be8022 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Wed, 21 Feb 2024 21:13:00 -0500 Subject: [PATCH 2/2] Update nightly Rust version Needed after https://github.com/rust3ds/ctru-rs/pull/157 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d86c589..5dab688 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: toolchain: - - nightly-2023-06-01 + - nightly-2024-02-18 runs-on: ubuntu-latest container: devkitpro/devkitarm @@ -39,7 +39,7 @@ jobs: matrix: toolchain: # Oldest supported nightly - - nightly-2023-06-01 + - nightly-2024-02-18 - nightly continue-on-error: ${{ matrix.toolchain == 'nightly' }}