mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-13 17:04:15 +00:00
* Speed up tests and run SDL-GPU device tests on CI * Arch rules share one ASM scan instead of ArchUnit * Tests needing an SDL GPU device fail without one instead of skipping * Replace checkstyle's wildcard-import check with a test * Use the runner's preinstalled Temurin JDKs * Cache build/rfg so the Minecraft decompile chain can be skipped * Unpack LWJGL natives before tests * Pin the shared workflow commit
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
|
|
name: Build and test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master, main ]
|
|
push:
|
|
branches: [ master, main ]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@05e7cd7ce0ea015acda8c10c1c39fb3a20a49e60
|
|
with:
|
|
disable-spotless-pr: true
|
|
java-distribution: temurin
|
|
cache-rfg: true
|
|
secrets: inherit
|
|
|
|
sdl-gpu-tests:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 20
|
|
concurrency:
|
|
group: sdl-gpu-tests-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
steps:
|
|
- name: Install a software Vulkan driver
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y xvfb mesa-vulkan-drivers
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: temurin
|
|
java-version: |
|
|
21
|
|
25
|
|
- uses: gradle/actions/setup-gradle@v5
|
|
- name: Run SDL-GPU tests
|
|
run: xvfb-run -a --server-args="-screen 0 1366x768x24" ./gradlew --build-cache --stacktrace --continue :sdl-gpu:glsmSdlTest :sdl-gpu:sdlGpuDeviceTest
|
|
- name: Check LWJGL did not extract natives to the shared temp dir
|
|
run: test ! -e "/tmp/lwjgl_$USER"
|
|
- name: Attach SDL-GPU test results
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: sdl-gpu-test-results
|
|
path: |
|
|
sdl-gpu/build/test-results/
|
|
sdl-gpu/build/reports/tests/
|
|
sdl-gpu/hs_err_pid*.log
|