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*' - '!zig-develop*'
jobs: jobs:
build: build:
runs-on: ubuntu-latest
steps: steps:
- 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.12.0
- uses: Hanaasagi/zig-action-cache@v1.1.5 - uses: elerch/zig-action-cache@v1.1.6
- name: Build project - name: Build project
run: zig build run: zig build --summary all
- name: Run tests - name: Run tests
run: zig build test --summary all run: zig build test --summary all
- name: Notify - name: Notify
uses: elerch/action-notify-ntfy@v2 uses: elerch/action-notify-ntfy@v2.github
if: ${{ github.env.GITEA_ACTIONS == 'true' }} if: always() && env.GITEA_ACTIONS == 'true'
with: with:
host: ${{ secrets.NTFY_HOST }} host: ${{ secrets.NTFY_HOST }}
topic: ${{ secrets.NTFY_TOPIC }} topic: ${{ secrets.NTFY_TOPIC }}
status: ${{ job.status }}
user: ${{ secrets.NTFY_USER }} user: ${{ secrets.NTFY_USER }}
password: ${{ secrets.NTFY_PASSWORD }} password: ${{ secrets.NTFY_PASSWORD }}

2
.gitignore vendored
View File

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

View File

@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void {
.name = "smithy", .name = "smithy",
// 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/smithy.zig" }, .root_source_file = b.path("src/smithy.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -30,14 +30,14 @@ pub fn build(b: *std.Build) void {
b.installArtifact(lib); b.installArtifact(lib);
const module = b.addModule("smithy", .{ 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); lib.root_module.addImport("smithy", module);
// 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 main_tests = b.addTest(.{ const main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/smithy.zig" }, .root_source_file = b.path("src/smithy.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });