alef 0.103.13

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use alef::core::template_versions::toolchain::MIN_ZIG_VERSION;

#[test]
fn ci_pins_zig_to_the_generated_code_toolchain_version() {
    let workflow = include_str!("../.github/workflows/ci.yml");
    let expected =
        format!("uses: xberg-io/actions/setup-zig@v1\n        with:\n          version: \"{MIN_ZIG_VERSION}\"");

    assert!(
        workflow.contains(&expected),
        "CI must pin setup-zig to {MIN_ZIG_VERSION}; the action's rolling `latest` default can install an incompatible \
         Zig release"
    );
}