Skip to content

Commit

Permalink
Debug windows failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 5, 2020
1 parent 1e887f2 commit 78e1e5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ jobs:
strategy:
matrix:
job:
- { os: macos-latest, target: x86_64-apple-darwin, use-cross: false }
- { os: windows-latest, target: x86_64-pc-windows-msvc, use-cross: false }
- { os: ubuntu-latest , target: x86_64-unknown-linux-gnu, use-cross: false }
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl, use-cross: true }
- { os: ubuntu-latest, target: i686-unknown-linux-gnu, use-cross: true }
- { os: ubuntu-latest, target: arm-unknown-linux-gnueabihf, use-cross: true }
- { os: ubuntu-latest, target: aarch64-unknown-linux-gnu, use-cross: true }
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -33,39 +27,6 @@ jobs:
use-cross: ${{ matrix.job.use-cross }}
args: --target ${{ matrix.job.target }} --verbose -- --nocapture

integration_tests:
name: Integration tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
include:
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build for release
uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }} --release
- name: End to end tests
run: |
DELTA_BIN=target/${{ matrix.target }}/release/delta
./tests/test_raw_output_matches_git_on_full_repo_history $DELTA_BIN
./tests/test_deprecated_options $DELTA_BIN > /dev/null
- name: Run executable
run: cargo run --release --target ${{ matrix.target }} -- < /dev/null

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions src/features/hyperlinks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ mod tests {
"delta.__workdir__".to_string(),
GitConfigEntry::Path(PathBuf::from("/working/directory")),
);
dbg!(format!(
"\x1b]8;;file://{}\x1b\\link-text\x1b]8;;\x1b\\",
Path::new("/working/directory/relative/path/file.rs").to_string_lossy()
));
dbg!(format_osc8_file_hyperlink(
"relative/path/file.rs",
None,
"link-text",
&config
));
assert_eq!(
format!(
"\x1b]8;;file://{}\x1b\\link-text\x1b]8;;\x1b\\",
Expand Down

0 comments on commit 78e1e5c

Please sign in to comment.