Skip to content

Commit

Permalink
Test \\?\
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 16, 2024
0 parents commit cf32bcb
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .github/workflows/ci.yml

name: CI
on: [push]
jobs:
repro:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly

- run: pwd
- run: echo ${{github.workspace}}
- run: echo \\?\${{github.workspace}}

- run: cargo check --verbose && cargo clean

- run: cargo check --manifest-path \\?\${{github.workspace}}\Cargo.toml --verbose
if: always()

- run: cargo check --verbose
working-directory: \\?\${{github.workspace}}
if: always()
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
Cargo.lock
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Cargo.toml

[package]
name = "repro"
version = "0.0.0"
homepage = "https://github.com/rust-lang/cargo/pull/13914"
7 changes: 7 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// build.rs

fn main() {
let out_dir = std::env::var_os("OUT_DIR").unwrap();
let repro = std::path::Path::new(&out_dir).join("repro.rs");
std::fs::write(repro, "").unwrap();
}
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// src/lib.rs

include!(concat!(env!("OUT_DIR"), "/repro.rs"));

0 comments on commit cf32bcb

Please sign in to comment.