No description
Find a file
Arbel Arad d4820fb018
Some checks failed
ci / build (Debug, aarch64-linux-musl) (push) Failing after 38s
ci / build (Debug, aarch64-macos) (push) Failing after 42s
ci / build (Debug, riscv64-linux-gnu) (push) Failing after 44s
ci / build (Debug, riscv64-linux-musl) (push) Failing after 42s
ci / build (Debug, x86_64-linux-gnu) (push) Failing after 46s
ci / build (Debug, x86_64-linux-musl) (push) Failing after 44s
ci / build (Debug, x86_64-windows-gnu) (push) Failing after 42s
ci / build (ReleaseFast, aarch64-linux-gnu) (push) Failing after 41s
ci / build (Debug, x86_64-macos) (push) Failing after 1m1s
ci / build (ReleaseFast, aarch64-linux-musl) (push) Failing after 1m59s
ci / build (ReleaseFast, aarch64-macos) (push) Failing after 2m32s
ci / build (ReleaseFast, riscv64-linux-gnu) (push) Failing after 2m30s
ci / build (ReleaseFast, riscv64-linux-musl) (push) Failing after 2m30s
ci / build (ReleaseFast, x86_64-linux-gnu) (push) Failing after 2m27s
ci / build (ReleaseFast, x86_64-macos) (push) Failing after 3m13s
ci / build (ReleaseFast, x86_64-linux-musl) (push) Failing after 3m28s
ci / build (ReleaseFast, x86_64-windows-gnu) (push) Failing after 3m13s
ci / build (ReleaseSafe, aarch64-linux-musl) (push) Failing after 2m47s
ci / build (ReleaseSafe, aarch64-linux-gnu) (push) Failing after 2m50s
ci / build (ReleaseSafe, x86_64-linux-gnu) (push) Failing after 2m19s
ci / build (ReleaseSafe, riscv64-linux-musl) (push) Failing after 2m22s
ci / build (ReleaseSafe, x86_64-linux-musl) (push) Failing after 2m20s
ci / build (ReleaseSafe, riscv64-linux-gnu) (push) Failing after 2m31s
ci / build (ReleaseSafe, aarch64-macos) (push) Failing after 3m10s
ci / build (ReleaseSafe, x86_64-macos) (push) Failing after 1m49s
ci / build (ReleaseSafe, x86_64-windows-gnu) (push) Failing after 1m47s
ci / build (ReleaseSmall, aarch64-linux-gnu) (push) Failing after 1m44s
ci / build (ReleaseSmall, aarch64-linux-musl) (push) Failing after 1m45s
ci / build (ReleaseSmall, aarch64-macos) (push) Failing after 1m50s
ci / build (ReleaseSmall, riscv64-linux-musl) (push) Failing after 1m23s
ci / build (ReleaseSmall, x86_64-linux-gnu) (push) Failing after 1m23s
ci / build (ReleaseSmall, riscv64-linux-gnu) (push) Failing after 1m24s
ci / build (ReleaseSmall, x86_64-linux-musl) (push) Failing after 1m26s
ci / build (ReleaseSmall, x86_64-macos) (push) Failing after 1m24s
ci / test (ReleaseFast, ubuntu-latest) (push) Successful in 2m31s
ci / build (ReleaseSmall, x86_64-windows-gnu) (push) Failing after 2m36s
ci / test (Debug, ubuntu-latest) (push) Successful in 2m35s
ci / test (ReleaseSafe, ubuntu-latest) (push) Successful in 2m42s
ci / test (ReleaseSmall, ubuntu-latest) (push) Successful in 2m41s
ci / build (Debug, aarch64-linux-gnu) (push) Failing after 1m34s
fix action config
2025-05-11 23:19:14 +03:00
.github/workflows fix action config 2025-05-11 23:19:14 +03:00
config works on my machine 2021-12-17 08:41:05 -08:00
libssh2@201c368aa1 updated sources 2025-05-11 22:09:15 +03:00
.gitattributes add gitattributes 2021-12-31 00:03:49 -08:00
.gitignore updated sources 2025-05-11 22:09:15 +03:00
.gitmodules fix gitmodule name (#4) 2022-01-01 20:49:23 -08:00
build.zig updated sources 2025-05-11 22:09:15 +03:00
build.zig.zon updated sources 2025-05-11 22:09:15 +03:00
LICENSE test to see if I'm out of github actions minutes 2021-12-30 20:49:09 -08:00
README.md port to new zig build API (#7) 2023-02-05 15:41:36 +01:00

libssh2 build package

ci

Like this project?

If you like this project or other works of mine, please consider donating to or sponsoring me on Github ❤️

How to use

This repo contains code for your build.zig that can statically compile libssh2.

In order to statically link libssh2 into your application:

const libssh2 = @import("path/to/libssh2.zig");

pub fn build(b: *std.build.Builder) void {
    // ...

    const lib = libssh2.create(b, target, optimize);

    const exe = b.addExecutable(.{
        .name = "my-program",
        .root_source_file = .{ .path = "src/main.zig" },
    });
    lib.link(exe);
}