This commit is contained in:
parent
31fe824a8b
commit
edd65b7f92
2
.github/workflows/zig-build.yaml
vendored
2
.github/workflows/zig-build.yaml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: elerch/setup-zig@v3
|
- uses: elerch/setup-zig@v3
|
||||||
with:
|
with:
|
||||||
version: 0.12.0
|
version: 0.13.0
|
||||||
- uses: elerch/zig-action-cache@v1.1.6
|
- uses: elerch/zig-action-cache@v1.1.6
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: zig build --summary all
|
run: zig build --summary all
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
zig-cache
|
zig-cache
|
||||||
zig-out
|
zig-out
|
||||||
|
.zig-cache
|
||||||
|
|
|
@ -6,7 +6,7 @@ RUN apt-get update \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
&& curl https://ziglang.org/download/0.12.0/zig-linux-x86_64-0.12.0.tar.xz | tar -C /usr/local/ -xJ \
|
&& curl https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz | tar -C /usr/local/ -xJ \
|
||||||
&& apt-get -y remove curl xz-utils \
|
&& apt-get -y remove curl xz-utils \
|
||||||
&& ln -s /usr/local/zig*/zig /usr/local/bin \
|
&& ln -s /usr/local/zig*/zig /usr/local/bin \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void {
|
||||||
.name = "fontfinder",
|
.name = "fontfinder",
|
||||||
// In this case the main source file is merely a path, however, in more
|
// In this case the main source file is merely a path, however, in more
|
||||||
// complicated build scripts, this could be a generated file.
|
// complicated build scripts, this could be a generated file.
|
||||||
.root_source_file = .{ .path = "src/main.zig" },
|
.root_source_file = b.path("src/main.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
@ -59,7 +59,7 @@ pub fn build(b: *std.Build) void {
|
||||||
// Creates a step for unit testing. This only builds the test executable
|
// Creates a step for unit testing. This only builds the test executable
|
||||||
// but does not run it.
|
// but does not run it.
|
||||||
const unit_tests = b.addTest(.{
|
const unit_tests = b.addTest(.{
|
||||||
.root_source_file = .{ .path = "src/main.zig" },
|
.root_source_file = b.path("src/main.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user