Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,20 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build-mingw:
runs-on: windows-2025
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: msys2/setup-msys2@v2
- shell: msys2 {0}
run: pacman -S --noconfirm base-devel rust
- shell: msys2 {0}
name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
11 changes: 3 additions & 8 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ fn main() {
let dst = bld
.reconf("-ivf")
.build();
println!("cargo::warning={}", dst.display());
println!("cargo:rustc-link-search=native={}", dst.join("lib").display());
println!("cargo:rustc-link-lib=static=sixel");
}
Expand Down Expand Up @@ -162,11 +161,7 @@ fn has_feature(feature: &'static str) -> bool {
}

fn sixel_prefix(directory: &str) -> String {
let cmd = Command::new("pwd").output().expect("Could not run `pwd`");
let base_path = std::str::from_utf8(&cmd.stdout)
.expect("Could not turn libsixel path into utf8")
.trim()
.to_string();
let path = base_path + "/" + LIBSIXEL_DIR + "/" + "build";
path
let cwd = env::current_dir().unwrap();
let path = cwd.join(LIBSIXEL_DIR).join("build");
path.display().to_string()
}
Loading