From 4236c66acc470eeba73fe74f94613e8d3acc57de Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Thu, 21 Dec 2023 14:17:36 -0800 Subject: [PATCH] Copy reftest html files to out/ for gh-pages (#3231) This should make URLs like this work: https://gpuweb.github.io/cts/out/webgpu/web_platform/reftests/canvas_colorspace_rgba16float.https.html --- Gruntfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 2ab90a00f634..a8119ba72956 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -167,6 +167,12 @@ module.exports = function (grunt) { { expand: true, dest: 'out-wpt/', cwd: 'gen', src: 'webgpu/listing.js' }, ], }, + 'htmlfiles-to-out': { + // Must run after run:build-out. + files: [ + { expand: true, dest: 'out/', cwd: 'src', src: 'webgpu/**/*.html' }, + ], + }, 'htmlfiles-to-out-wpt': { // Must run after run:build-out-wpt. files: [ @@ -241,6 +247,7 @@ module.exports = function (grunt) { 'run:build-out', 'run:copy-assets', 'copy:gen-to-out', + 'copy:htmlfiles-to-out', ]); grunt.registerTask('build-wpt', 'Build out-wpt/ (no checks; run after generate-common)', [ 'run:build-out-wpt',