-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03125ab
commit ac2ef73
Showing
1 changed file
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,13 +237,49 @@ jobs: | |
|
||
tests: | ||
name: Run tests | ||
# We run the tests on macOS because it will run with a actual GPU | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
# On macos the tests will run on an actual gpu and on ubuntu using llvmpipe. | ||
os: [macos-latest, ubuntu-latest] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Add mesa ppa | ||
if: runner.os == 'Linux' | ||
run: sudo add-apt-repository ppa:oibaf/graphics-drivers -y | ||
|
||
- name: (linux) install llvmpipe, lavapipe, vulkan sdk | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: | | ||
set -e | ||
sudo apt-get update -y -qq | ||
# vulkan sdk | ||
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | ||
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list https://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list | ||
sudo add-apt-repository ppa:kisak/kisak-mesa | ||
sudo apt-get update | ||
sudo apt install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev vulkan-sdk mesa-vulkan-drivers | ||
- name: Install packages (Linux) | ||
if: runner.os == 'Linux' | ||
uses: awalsh128/[email protected] | ||
with: | ||
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd | ||
version: 1.0 | ||
execute_install_scripts: true | ||
|
||
|
||
|
||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.76.0 | ||
|
@@ -259,5 +295,5 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-results | ||
name: test-results-${{ matrix.os }} | ||
path: "**/tests/snapshots" |