Compare commits
No commits in common. "b0ef8ebe63f52e4a7d4169f2a5bb911eba4bea33" and "79e77c40eb1451de96f65d68ddbd1737937b573b" have entirely different histories.
b0ef8ebe63
...
79e77c40eb
10
.github/workflows/zig-build.yaml
vendored
10
.github/workflows/zig-build.yaml
vendored
|
@ -7,23 +7,21 @@ on:
|
|||
- '!zig-develop*'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: elerch/setup-zig@v3
|
||||
with:
|
||||
version: 0.12.0
|
||||
- uses: elerch/zig-action-cache@v1.1.6
|
||||
- uses: Hanaasagi/zig-action-cache@v1.1.5
|
||||
- name: Build project
|
||||
run: zig build --summary all
|
||||
run: zig build
|
||||
- name: Run tests
|
||||
run: zig build test --summary all
|
||||
- name: Notify
|
||||
uses: elerch/action-notify-ntfy@v2.github
|
||||
if: always() && env.GITEA_ACTIONS == 'true'
|
||||
uses: elerch/action-notify-ntfy@v2
|
||||
if: ${{ github.env.GITEA_ACTIONS == 'true' }}
|
||||
with:
|
||||
host: ${{ secrets.NTFY_HOST }}
|
||||
topic: ${{ secrets.NTFY_TOPIC }}
|
||||
status: ${{ job.status }}
|
||||
user: ${{ secrets.NTFY_USER }}
|
||||
password: ${{ secrets.NTFY_PASSWORD }}
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
zig-cache
|
||||
zig-out
|
||||
core
|
||||
.zig-cache
|
||||
|
|
|
@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void {
|
|||
.name = "smithy",
|
||||
// In this case the main source file is merely a path, however, in more
|
||||
// complicated build scripts, this could be a generated file.
|
||||
.root_source_file = b.path("src/smithy.zig"),
|
||||
.root_source_file = .{ .path = "src/smithy.zig" },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
@ -30,14 +30,14 @@ pub fn build(b: *std.Build) void {
|
|||
b.installArtifact(lib);
|
||||
|
||||
const module = b.addModule("smithy", .{
|
||||
.root_source_file = b.path("src/smithy.zig"),
|
||||
.root_source_file = .{ .path = "src/smithy.zig" },
|
||||
});
|
||||
lib.root_module.addImport("smithy", module);
|
||||
|
||||
// Creates a step for unit testing. This only builds the test executable
|
||||
// but does not run it.
|
||||
const main_tests = b.addTest(.{
|
||||
.root_source_file = b.path("src/smithy.zig"),
|
||||
.root_source_file = .{ .path = "src/smithy.zig" },
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user