Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
* removed MSVC and MacOS CI
* skip tests error to musl abi
* more targets (embedded)
  • Loading branch information
kassane committed Apr 26, 2023
1 parent cfbfe1b commit 2cd7aa6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unittests_zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
Expand All @@ -25,6 +25,6 @@ jobs:
- uses: goto-bus-stop/setup-zig@v2
with:
version: master

# wait https://github.com/ziglang/zig/issues/15444 (macOS)
- name: Build Summary
run: zig build -DTests -fsummary -freference-trace
14 changes: 13 additions & 1 deletion .github/workflows/unittests_zig_embedded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,16 @@ jobs:

- name: Build Summary (arm64-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests -fsummary -freference-trace -Dtarget=aarch64-linux
run: zig build -DTests -fsummary -freference-trace -Dtarget=aarch64-linux
- name: Build Summary (riscv64-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests -fsummary -freference-trace -Dtarget=riscv64-linux
- name: Build Summary (mispel-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests -fsummary -freference-trace -Dtarget=mipsel-linux
- name: Build Summary (mips-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests -fsummary -freference-trace -Dtarget=mips-linux
- name: Build Summary (powerpc64-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests -fsummary -freference-trace -Dtarget=powerpc64-linux
5 changes: 3 additions & 2 deletions .github/workflows/unittests_zig_msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ jobs:
with:
arch: amd64_x86

- name: Build Summary
run: zig build -DTests -fsummary -freference-trace -Dtarget=${{matrix.target}}
# wait: https://github.com/ziglang/zig/issues/15448
# - name: Build Summary
# run: zig build -DTests -fsummary -freference-trace -Dtarget=${{matrix.target}}
18 changes: 10 additions & 8 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ pub fn build(b: *std.Build) void {
.lib = lib,
.path = "test/tests/issue0210.cpp",
});
buildTest(b, .{
.lib = lib,
.path = "test/tests/issue0220.cpp",
});
buildTest(b, .{
.lib = lib,
.path = "test/tests/issue0244.cpp",
Expand All @@ -194,10 +190,16 @@ pub fn build(b: *std.Build) void {
.lib = lib,
.path = "test/tests/issue0247.cpp",
});
buildTest(b, .{
.lib = lib,
.path = "test/tests/issue0255.cpp",
});
if (!lib.target_info.target.isMusl()) {
buildTest(b, .{
.lib = lib,
.path = "test/tests/issue0220.cpp",
});
buildTest(b, .{
.lib = lib,
.path = "test/tests/issue0255.cpp",
});
}
buildTest(b, .{
.lib = lib,
.path = "test/tests/issue0259.cpp",
Expand Down

0 comments on commit 2cd7aa6

Please sign in to comment.