Skip to content
Prev Previous commit
Next Next commit
Work around Windows CI failure
  • Loading branch information
thecrypticace committed Nov 30, 2025
commit 297d8845920041c6667da42c519dc717429294da
12 changes: 11 additions & 1 deletion packages/@tailwindcss-standalone/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url))

// Workaround for Bun binary downloads failing on Windows CI when
// USERPROFILE is passed through by Turborepo.
process.env.USERPROFILE = ''
//
// Unfortunately, setting this at runtime doesn't appear to work so we have to
// spawn a new process without the env var.
if (process.env.NESTED_BUILD !== '1' && process.env.USERPROFILE && process.env.USERPROFILE !== '') {
let result = await Bun.$`bun ./build.ts`.env({
USERPROFILE: '',
NESTED_BUILD: '1',
})

process.exit(result.exitCode)
}

// We use baseline builds for all x64 platforms to ensure compatibility with
// older hardware.
Expand Down
Loading