Compare commits

..

6 Commits

Author SHA1 Message Date
b0ef8ebe63
update to zig 0.13-dev.365 (zig nominated build 2024.05 2024-06-04 14:41:31 -07:00
c5436c4e0a
always && gitea. ok, then
All checks were successful
Generic zig build / build (push) Successful in 14s
2024-04-30 22:52:00 -07:00
2457ad2c7b
update zig-action-cache to GitHub friendly version
All checks were successful
Generic zig build / build (push) Successful in 19s
2024-04-30 20:17:50 -07:00
cd43ead0ff
attempt workflow in both
All checks were successful
Generic zig build / build (push) Successful in 19s
2024-04-29 14:15:29 -07:00
eb97787671
add runs-on for github
All checks were successful
Generic zig build / build (push) Successful in 34s
2024-04-29 13:56:28 -07:00
7cfc669a1d
add summary/fix notify
All checks were successful
Generic zig build / build (push) Successful in 19s
2024-04-29 13:33:27 -07:00
3 changed files with 10 additions and 8 deletions

View File

@ -7,21 +7,23 @@ 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: Hanaasagi/zig-action-cache@v1.1.5
- uses: elerch/zig-action-cache@v1.1.6
- name: Build project
run: zig build
run: zig build --summary all
- name: Run tests
run: zig build test --summary all
- name: Notify
uses: elerch/action-notify-ntfy@v2
if: ${{ github.env.GITEA_ACTIONS == 'true' }}
uses: elerch/action-notify-ntfy@v2.github
if: always() && 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
View File

@ -1,3 +1,3 @@
zig-cache
zig-out
core
.zig-cache

View File

@ -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 = .{ .path = "src/smithy.zig" },
.root_source_file = b.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 = .{ .path = "src/smithy.zig" },
.root_source_file = b.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 = .{ .path = "src/smithy.zig" },
.root_source_file = b.path("src/smithy.zig"),
.target = target,
.optimize = optimize,
});