Skip to content

Commit 88c5b18

Browse files
authored
Upgrade to zig 0.15.1 and mbedtls 3.6.4 (#4)
1 parent 7d862fe commit 88c5b18

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ jobs:
3434
submodules: recursive
3535

3636
- name: Setup Zig
37-
uses: mlugg/setup-zig@v1
37+
uses: mlugg/setup-zig@v2.0.5
3838
with:
39-
version: 0.14.0
40-
39+
version: 0.15.1
4140
- name: Build
4241
run: zig build -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }}
4342
test:
@@ -52,9 +51,9 @@ jobs:
5251
submodules: recursive
5352

5453
- name: Setup Zig
55-
uses: mlugg/setup-zig@v1
54+
uses: mlugg/setup-zig@v2.0.5
5655
with:
57-
version: 0.14.0
56+
version: 0.15.1
5857

5958
- name: Test
6059
run: zig build test

build.zig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ pub fn build(b: *Build) void {
3232

3333
const selftest = b.addExecutable(.{
3434
.name = "selftest",
35-
.target = target,
36-
.optimize = optimize,
37-
.link_libc = true,
35+
.root_module = b.createModule(.{
36+
.target = target,
37+
.optimize = optimize,
38+
.link_libc = true,
39+
}),
3840
});
3941
selftest.root_module.addCMacro("MBEDTLS_SELF_TEST", "");
4042
selftest.addCSourceFile(.{

build.zig.zon

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.{
22
.name = .mbedtls,
33
.fingerprint = 0x841b00c247548313,
4-
.version = "3.6.2",
4+
.version = "3.6.4",
5+
.minimum_zig_version = "0.15.1",
56
.dependencies = .{
67
.mbedtls = .{
7-
.url = "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/mbedtls-3.6.2.tar.gz",
8-
.hash = "N-V-__8AAPnFhALfI8HonTAfQwJlGPkOdcv9kdkvnmLlJDJo",
8+
.url = "git+https://github.com/Mbed-TLS/mbedtls.git?ref=v3.6.4#c765c831e5c2a0971410692f92f7a81d6ec65ec2",
9+
.hash = "N-V-__8AADE9jALWhPS2ykOLbf8gUmr9r-SBwyzzpccbtBAv",
910
},
1011
},
1112
.paths = .{

0 commit comments

Comments
 (0)