Browse Source

Merge pull request #17 from rust3ds/fix/upgrade-to-vulkan

main v1
Ian Chamberlain 9 months ago committed by GitHub
parent
commit
b17065d5af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/ci.yml
  2. 13
      run-tests/Dockerfile
  3. 5
      run-tests/docker/sdl2-config.ini

4
.github/workflows/ci.yml

@ -14,7 +14,7 @@ jobs:
strategy: strategy:
matrix: matrix:
toolchain: toolchain:
- nightly-2023-06-01 - nightly-2024-02-18
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: devkitpro/devkitarm container: devkitpro/devkitarm
@ -39,7 +39,7 @@ jobs:
matrix: matrix:
toolchain: toolchain:
# Oldest supported nightly # Oldest supported nightly
- nightly-2023-06-01 - nightly-2024-02-18
- nightly - nightly
continue-on-error: ${{ matrix.toolchain == 'nightly' }} continue-on-error: ${{ matrix.toolchain == 'nightly' }}

13
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 RUN apt-get update -y && apt-get install -y jq
ARG CITRA_CHANNEL=nightly ARG CITRA_CHANNEL=nightly
ARG CITRA_RELEASE=1995 ARG CITRA_RELEASE=2098
RUN download_citra ${CITRA_CHANNEL} ${CITRA_RELEASE} RUN download_citra ${CITRA_CHANNEL} ${CITRA_RELEASE}
FROM devkitpro/devkitarm:latest as devkitarm FROM devkitpro/devkitarm:latest as devkitarm
@ -17,15 +17,18 @@ RUN cd /opt/devkitpro/examples/3ds/graphics/printing/hello-world && \
make && \ make && \
mv hello-world.3dsx /tmp/ mv hello-world.3dsx /tmp/
FROM ubuntu:latest FROM ubuntu:mantic
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \ RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
apt-get update -y && \ apt-get update -y && \
apt-get install -y \ apt-get install -y \
libswscale5 \ libavfilter9 \
libavformat60 \
libavutil58 \
libsdl2-2.0-0 \ libsdl2-2.0-0 \
libavformat58 \ libswscale7 \
libavfilter7 \ mesa-vulkan-drivers \
vulkan-tools \
xvfb xvfb
COPY --from=devkitarm /opt/devkitpro /opt/devkitpro COPY --from=devkitarm /opt/devkitpro /opt/devkitpro

5
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] [Miscellaneous]
log_filter = *:Info Debug.Emulated:Debug log_filter = *:Info Debug.Emulated:Debug

Loading…
Cancel
Save