Skip to content

Commit

Permalink
update codeberg ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Apr 25, 2024
1 parent 23bf339 commit d0f3ae1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
17 changes: 0 additions & 17 deletions .woodpecker.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .woodpecker/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
steps:
- name: zig
image: ziglings/ziglang:latest
pull: true
commands:
- zig version
- apk add --update make
- make fmt test
when:
- event: [push, cron]
cron: ci*
3 changes: 1 addition & 2 deletions build.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const std = @import("std");
const Build = std.Build;
const LazyPath = Build.LazyPath;

pub fn build(b: *Build) !void {
const optimize = b.standardOptimizeOption(.{});
Expand Down Expand Up @@ -185,7 +184,7 @@ fn makeCompileStep(

const exe = b.addExecutable(.{
.name = name,
.root_source_file = .{ .path = path ++ "/" ++ name ++ ".zig" },
.root_source_file = b.path(path ++ "/" ++ name ++ ".zig"),
.target = target,
.optimize = optimize,
});
Expand Down

0 comments on commit d0f3ae1

Please sign in to comment.