Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v1
with:
version: 0.12.1
version: 0.14.0

- name: Show Zig version
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v1
with:
version: 0.12.1
version: 0.14.0

- name: Show Zig version
run: |
Expand All @@ -46,15 +46,15 @@ jobs:

test:
name: Test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v1
with:
version: 0.12.1
version: 0.14.0

- name: Install kcov
run: |
Expand Down Expand Up @@ -84,9 +84,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v1
with:
version: 0.12.1
version: 0.14.0

- name: Check formatting
run: zig fmt --check .
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v1
with:
version: 0.12.1
version: 0.14.0

- name: Show Zig version
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM euantorano/zig:0.10.1 as builder
FROM eloitor/zig:0.14.0 as builder
RUN apk update
RUN apk add --no-cache git
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

#### Prerequisites

- [Zig](https://ziglang.org/download/) (`0.12` or `0.13`)
- [Zig](https://ziglang.org/download/) (`0.14`)

#### Instructions

Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const version = "0.2.0"; // managed by release.sh
///
/// This is used for providing the dependencies for main executable as well as the tests.
fn addPackages(b: *std.Build, exe: *std.Build.Step.Compile) !void {
const clap = b.dependency("zig-clap", .{}).module("clap");
const clap = b.dependency("clap", .{}).module("clap");
exe.root_module.addImport("clap", clap);
for ([_][]const u8{ "file", "gen", "wav" }) |package| {
const path = b.fmt("src/{s}.zig", .{package});
Expand Down
10 changes: 6 additions & 4 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.{
.name = "linuxwave",
.name = .linuxwave,
.version = "0.1.5",
.fingerprint = 0x217eafdf4732b5f9,
.minimum_zig_version = "0.14.0",
.paths = .{
"build.zig",
"build.zig.zon",
Expand All @@ -9,9 +11,9 @@
"README.md",
},
.dependencies = .{
.@"zig-clap" = .{
.url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.9.1.tar.gz",
.hash = "122062d301a203d003547b414237229b09a7980095061697349f8bef41be9c30266b",
.clap = .{
.url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.10.0.tar.gz",
.hash = "clap-0.10.0-oBajB434AQBDh-Ei3YtoKIRxZacVPF1iSwp3IX_ZB8f0",
},
},
}
2 changes: 1 addition & 1 deletion src/file.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn readBytes(

test "read bytes from the file" {
// Get the current directory.
var cwd_buffer: [std.fs.MAX_PATH_BYTES]u8 = undefined;
var cwd_buffer: [std.fs.max_path_bytes]u8 = undefined;
const cwd = try std.posix.getcwd(&cwd_buffer);

// Concatenate the current directory with the builder file.
Expand Down
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn run(allocator: std.mem.Allocator, output: anytype) !void {
// Create generator configuration.
const scale = s: {
var scale = std.ArrayList(u8).init(allocator);
var splits = std.mem.split(u8, if (cli.args.scale) |s| s else defaults.scale, ",");
var splits = std.mem.splitAny(u8, if (cli.args.scale) |s| s else defaults.scale, ",");
while (splits.next()) |chunk| {
try scale.append(try std.fmt.parseInt(u8, chunk, 0));
}
Expand Down