ci: update zig version
This commit is contained in:
parent
fa1fb15c93
commit
3e2cd50a86
5 changed files with 14 additions and 17 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v2
|
uses: mlugg/setup-zig@v2
|
||||||
with:
|
with:
|
||||||
version: 0.15.2
|
version: 0.16.0-dev.2535+b5bd49460
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: zig build
|
run: zig build
|
||||||
|
|
@ -55,7 +55,7 @@ jobs:
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v2
|
uses: mlugg/setup-zig@v2
|
||||||
with:
|
with:
|
||||||
version: 0.15.2
|
version: 0.16.0-dev.2535+b5bd49460
|
||||||
|
|
||||||
- name: Download build artifacts
|
- name: Download build artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Temporalz provides Zig bindings to the Rust-based [temporal_rs](https://github.c
|
||||||
|
|
||||||
#### Prerequisites
|
#### Prerequisites
|
||||||
|
|
||||||
- Zig 0.15.2
|
- Zig 0.16.0-dev.2535+b5bd49460 or later
|
||||||
- Rust toolchain (only required if [prebuilt staticlibs](#prebuilt) are not available for your platform)
|
- Rust toolchain (only required if [prebuilt staticlibs](#prebuilt) are not available for your platform)
|
||||||
|
|
||||||
#### Add as a Dependency
|
#### Add as a Dependency
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
.name = .temporalz,
|
.name = .temporalz,
|
||||||
.version = "0.1.2",
|
.version = "0.1.2",
|
||||||
.fingerprint = 0xd8d79d59acc4faae,
|
.fingerprint = 0xd8d79d59acc4faae,
|
||||||
.minimum_zig_version = "0.16.0",
|
.minimum_zig_version = "0.16.0-dev.2535",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.temporal_rs = .{
|
.temporal_rs = .{
|
||||||
.url = "git+https://github.com/boa-dev/temporal#v0.1.2",
|
.url = "git+https://github.com/boa-dev/temporal#v0.1.2",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
.name = .temporalz_example,
|
.name = .temporalz_example,
|
||||||
.version = "0.1.2",
|
.version = "0.1.2",
|
||||||
.fingerprint = 0x686c9dfc777f9593,
|
.fingerprint = 0x686c9dfc777f9593,
|
||||||
.minimum_zig_version = "0.15.2",
|
.minimum_zig_version = "0.16.0-dev.2535+b5bd49460",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.temporalz = .{
|
.temporalz = .{
|
||||||
.path = "../",
|
.path = "../",
|
||||||
|
|
|
||||||
|
|
@ -57,16 +57,14 @@ test "Temporal.Duration compare time-only" {
|
||||||
const td2_neg = try Temporal.Duration.init(0, 0, 0, 0, -5, -4, -5, -5, -5, -5);
|
const td2_neg = try Temporal.Duration.init(0, 0, 0, 0, -5, -4, -5, -5, -5, -5);
|
||||||
defer td2_neg.deinit();
|
defer td2_neg.deinit();
|
||||||
|
|
||||||
const rel: Temporal.Duration.RelativeTo = .{};
|
try std.testing.expectEqual(@as(i8, 0), try td1.compare(td1, .{}));
|
||||||
|
try std.testing.expectEqual(@as(i8, -1), try td2.compare(td1, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, 0), try td1.compare(td1, rel));
|
try std.testing.expectEqual(@as(i8, 1), try td1.compare(td2, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, -1), try td2.compare(td1, rel));
|
try std.testing.expectEqual(@as(i8, 0), try td1_neg.compare(td1_neg, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, 1), try td1.compare(td2, rel));
|
try std.testing.expectEqual(@as(i8, 1), try td2_neg.compare(td1_neg, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, 0), try td1_neg.compare(td1_neg, rel));
|
try std.testing.expectEqual(@as(i8, -1), try td1_neg.compare(td2_neg, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, 1), try td2_neg.compare(td1_neg, rel));
|
try std.testing.expectEqual(@as(i8, -1), try td1_neg.compare(td2, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, -1), try td1_neg.compare(td2_neg, rel));
|
try std.testing.expectEqual(@as(i8, 1), try td1.compare(td2_neg, .{}));
|
||||||
try std.testing.expectEqual(@as(i8, -1), try td1_neg.compare(td2, rel));
|
|
||||||
try std.testing.expectEqual(@as(i8, 1), try td1.compare(td2_neg, rel));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mirrors test262 test/built-ins/Temporal/Duration/from/argument-string.js
|
// Mirrors test262 test/built-ins/Temporal/Duration/from/argument-string.js
|
||||||
|
|
@ -706,8 +704,7 @@ test "Temporal.Duration compare blank durations" {
|
||||||
const blank2 = try Temporal.Duration.init(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
const blank2 = try Temporal.Duration.init(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||||
defer blank2.deinit();
|
defer blank2.deinit();
|
||||||
|
|
||||||
const rel: Temporal.Duration.RelativeTo = .{};
|
const result = try blank1.compare(blank2, .{});
|
||||||
const result = try blank1.compare(blank2, rel);
|
|
||||||
try std.testing.expectEqual(@as(i8, 0), result);
|
try std.testing.expectEqual(@as(i8, 0), result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue