File tree Expand file tree Collapse file tree 2 files changed +33
-8
lines changed
Expand file tree Collapse file tree 2 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88
99jobs :
10- test :
11- strategy :
12- matrix :
13- os : [windows-latest, macos-latest, ubuntu-latest]
14- runs-on : ${{matrix.os}}
10+ test-windows :
11+ runs-on : windows-latest
1512 steps :
16- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v3
1714 - uses : mlugg/setup-zig@v1
1815 with :
1916 version : 0.14.0
20- - run : zig build test
17+ - run : |
18+ zig build test
19+ zig build -Dtarget=x86-windows-gnu test
20+
21+ test-macos :
22+ runs-on : macos-latest
23+ steps :
24+ - uses : actions/checkout@v3
25+ - uses : mlugg/setup-zig@v1
26+ with :
27+ version : 0.14.0
28+ # Note that there's no testing for 32-bit on macos since offical support has been dropped
29+ - run : |
30+ zig build test
31+
32+ test-linux :
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v3
36+ - uses : mlugg/setup-zig@v1
37+ with :
38+ version : 0.14.0
39+ - run : |
40+ zig build test
41+ zig build -Dtarget=x86-linux-gnu test
Original file line number Diff line number Diff line change @@ -469,7 +469,11 @@ test "huge max size" {
469469 const MB = KB * 1024 ;
470470 const GB = MB * 1024 ;
471471
472- var a = StableArray (u8 ).init (GB * 128 );
472+ const MAX_MEMORY_32 = GB * 1 ;
473+ const MAX_MEMORY_64 = GB * 128 ;
474+ const MAX_MEMORY = if (@sizeOf (usize ) < @sizeOf (u64 )) MAX_MEMORY_32 else MAX_MEMORY_64 ;
475+
476+ var a = StableArray (u8 ).init (MAX_MEMORY );
473477 defer a .deinit ();
474478
475479 try a .resize (MB * 4 );
You can’t perform that action at this time.
0 commit comments