33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: 'Renderdiff Generate'
|
|
description: 'Sets up prerequisites and runs the generate script for renderdiff'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: ./.github/actions/mac-prereq
|
|
- uses: ./.github/actions/get-gltf-assets
|
|
- uses: ./.github/actions/get-mesa
|
|
- uses: ./.github/actions/get-vulkan-sdk
|
|
- name: Prerequisites
|
|
if: runner.os == 'macOS'
|
|
run: |
|
|
# Must have at least clang-17 for a webgpu/dawn build.
|
|
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
|
|
# this enforces the gltf_viewer build to use apple clang as oppose the brew clang used for get-mesa
|
|
echo "CC=/usr/bin/clang" >> $GITHUB_ENV
|
|
echo "CXX=/usr/bin/clang++" >> $GITHUB_ENV
|
|
echo "/usr/local/bin" >> $GITHUB_PATH
|
|
echo "/usr/bin" >> $GITHUB_PATH
|
|
shell: bash
|
|
- name: Generate images
|
|
run: |
|
|
TEST_DIR=test/renderdiff
|
|
source ${TEST_DIR}/src/preamble.sh
|
|
set -eux
|
|
bash ${TEST_DIR}/generate.sh
|
|
set +eux
|
|
shell: bash
|
|
- name: Build diffimg tool
|
|
run: |
|
|
./build.sh release diffimg
|
|
shell: bash
|