diff --git a/examples/zig-gyro/.gitignore b/examples/zig-gyro/.gitignore deleted file mode 100644 index 1e0708b6c..000000000 --- a/examples/zig-gyro/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -deps.zig -.gyro/ -zig-*/ \ No newline at end of file diff --git a/examples/zig-gyro/build.zig b/examples/zig-gyro/build.zig deleted file mode 100644 index 8dc4541c6..000000000 --- a/examples/zig-gyro/build.zig +++ /dev/null @@ -1,36 +0,0 @@ -const std = @import("std"); -const deps = @import("deps.zig"); - -pub fn build(b: *std.build.Builder) void { - // Standard target options allows the person running `zig build` to choose - // what target to build for. Here we do not override the defaults, which - // means any target is allowed, and the default is native. Other options - // for restricting supported target set are available. - const target = b.standardTargetOptions(.{}); - - // Standard release options allow the person running `zig build` to select - // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. - const mode = b.standardReleaseOptions(); - - const exe = b.addExecutable("zig-gyro", "src/main.zig"); - deps.pkgs.addAllTo(exe); - exe.setTarget(target); - exe.setBuildMode(mode); - exe.install(); - - const run_cmd = exe.run(); - run_cmd.step.dependOn(b.getInstallStep()); - if (b.args) |args| { - run_cmd.addArgs(args); - } - - const run_step = b.step("run", "Run the app"); - run_step.dependOn(&run_cmd.step); - - const exe_tests = b.addTest("src/main.zig"); - exe_tests.setTarget(target); - exe_tests.setBuildMode(mode); - - const test_step = b.step("test", "Run unit tests"); - test_step.dependOn(&exe_tests.step); -} diff --git a/examples/zig-gyro/gyro.lock b/examples/zig-gyro/gyro.lock deleted file mode 100644 index 5c69fc538..000000000 --- a/examples/zig-gyro/gyro.lock +++ /dev/null @@ -1 +0,0 @@ -pkg astrolabe.pm mattnite uri 0.0.1 diff --git a/examples/zig-gyro/gyro.zzz b/examples/zig-gyro/gyro.zzz deleted file mode 100644 index 9ff7ed550..000000000 --- a/examples/zig-gyro/gyro.zzz +++ /dev/null @@ -1,2 +0,0 @@ -deps: - mattnite/uri: ^0.0.1 diff --git a/examples/zig-gyro/src/main.zig b/examples/zig-gyro/src/main.zig deleted file mode 100644 index 9772036b6..000000000 --- a/examples/zig-gyro/src/main.zig +++ /dev/null @@ -1,13 +0,0 @@ -const std = @import("std"); -const uri = @import("uri"); - -pub fn main() anyerror!void { - const stdout = std.io.getStdOut(); - _ = nosuspend stdout.write("Hello from Zig\n") catch return; - - _ = nosuspend stdout.write("The URI scheme of GitHub is " ++ ((try uri.parse("https://github.com/railwayapp/nixpacks")).scheme orelse "") ++ ".\n") catch return; -} - -test "basic test" { - try std.testing.expectEqual(10, 3 + 7); -} diff --git a/tests/docker_run_tests.rs b/tests/docker_run_tests.rs index 4968ad5cc..67ad496cf 100644 --- a/tests/docker_run_tests.rs +++ b/tests/docker_run_tests.rs @@ -894,14 +894,6 @@ async fn test_zig() { assert!(output.contains("Hello from Zig")); } -#[tokio::test] -async fn test_zig_gyro() { - let name = simple_build("./examples/zig-gyro").await; - let output = run_image(&name, None).await; - assert!(output.contains("Hello from Zig")); - assert!(output.contains("The URI scheme of GitHub is https.")); -} - #[tokio::test] async fn test_ruby_2() { let name = simple_build("./examples/ruby-2").await; diff --git a/tests/generate_plan_tests.rs b/tests/generate_plan_tests.rs index b1ca034d4..a47c6f368 100644 --- a/tests/generate_plan_tests.rs +++ b/tests/generate_plan_tests.rs @@ -107,27 +107,6 @@ fn test_haskell_stack() { ); } -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "i386"))] -#[test] -fn test_zig_gyro() { - let plan = simple_gen_plan("./examples/zig-gyro"); - let install = plan.get_phase("install").unwrap().clone(); - let build = plan.get_phase("build").unwrap(); - let start = plan.start_phase.clone().unwrap(); - - assert_eq!( - build.cmds, - Some(vec!["zig build -Drelease-safe=true".to_string()]) - ); - assert_eq!(start.cmd, Some("./zig-out/bin/zig-gyro".to_string())); - assert!(install - .cmds - .unwrap() - .get(0) - .unwrap() - .contains("mkdir /gyro")); -} - #[test] fn test_node_turborepo_custom_app() { let plan = generate_build_plan(