From 981c1f919643d8a949bc4f1022ad07dd0123844a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 8 Jul 2023 01:33:48 +0200 Subject: [PATCH] Fix installing naga-cli from git (#2398) Move hl-snapshots out from the xtask workspace, since it's also used as a dev dependency in the naga crate itself for a test. --- .github/workflows/validation-windows.yml | 1 + Cargo.toml | 2 +- {xtask/hlsl-snapshots => hlsl-snapshots}/Cargo.toml | 0 {xtask/hlsl-snapshots => hlsl-snapshots}/src/lib.rs | 0 xtask/Cargo.toml | 4 +--- 5 files changed, 3 insertions(+), 4 deletions(-) rename {xtask/hlsl-snapshots => hlsl-snapshots}/Cargo.toml (100%) rename {xtask/hlsl-snapshots => hlsl-snapshots}/src/lib.rs (100%) diff --git a/.github/workflows/validation-windows.yml b/.github/workflows/validation-windows.yml index d84b44f62..536b71d7b 100644 --- a/.github/workflows/validation-windows.yml +++ b/.github/workflows/validation-windows.yml @@ -6,6 +6,7 @@ on: - 'tests/out/hlsl/*.hlsl' - 'tests/out/hlsl/*.ron' - 'xtask/**' + - 'hlsl-snapshots/**' jobs: validate-windows-dxc: diff --git a/Cargo.toml b/Cargo.toml index c7ee98e27..2f44f8203 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,7 @@ bincode = "1" criterion = { version = "0.3", features = [] } diff = "0.1" env_logger = "0.9" -hlsl-snapshots = { path = "./xtask/hlsl-snapshots"} +hlsl-snapshots = { path = "./hlsl-snapshots"} # Require at least version 0.7.1 of ron, this version changed how floating points are # serialized by forcing them to always have the decimal part, this makes it backwards # incompatible with our tests because we do a syntatic diff and not a semantic one. diff --git a/xtask/hlsl-snapshots/Cargo.toml b/hlsl-snapshots/Cargo.toml similarity index 100% rename from xtask/hlsl-snapshots/Cargo.toml rename to hlsl-snapshots/Cargo.toml diff --git a/xtask/hlsl-snapshots/src/lib.rs b/hlsl-snapshots/src/lib.rs similarity index 100% rename from xtask/hlsl-snapshots/src/lib.rs rename to hlsl-snapshots/src/lib.rs diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 4214df66f..579c521ea 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -8,12 +8,10 @@ publish = false anyhow = "1" env_logger = { version = "0.10.0", default-features = false } glob = "0.3.1" -hlsl-snapshots = { path = "./hlsl-snapshots"} +hlsl-snapshots = { path = "../hlsl-snapshots"} log = "0.4.17" pico-args = "0.5.0" shell-words = "1.1.0" which = "4.4.0" [workspace] - -members = [".", "./hlsl-snapshots"]