From cd61c631f2e77f99e511f204ac0af5dda893b9dd Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Thu, 19 Jan 2023 22:10:00 +0330 Subject: [PATCH] glfw: ci: don't run tests when cross-compiling --- libs/glfw/.github/workflows/ci.yml | 18 +++++++++--------- libs/glfw/.github/workflows/m1_ci.yml | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libs/glfw/.github/workflows/ci.yml b/libs/glfw/.github/workflows/ci.yml index 59ee4fec..28b4d565 100644 --- a/libs/glfw/.github/workflows/ci.yml +++ b/libs/glfw/.github/workflows/ci.yml @@ -18,15 +18,15 @@ jobs: sudo apt install xz-utils sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.1350+bbab4beda.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' - name: x86_64-linux -> x86_64-macos - run: zig build test -Dtarget=x86_64-macos + run: zig build -Dtarget=x86_64-macos env: AGREE: true - name: x86_64-linux -> aarch64-macos - run: zig build test -Dtarget=aarch64-macos + run: zig build -Dtarget=aarch64-macos env: AGREE: true - name: x86_64-linux -> x86_64-windows - run: zig build test -Dtarget=x86_64-windows + run: zig build -Dtarget=x86_64-windows - name: launch xvfb run: Xvfb :99 -screen 0 1680x720x24 > /dev/null 2>&1 & - name: test @@ -51,15 +51,15 @@ jobs: 7z x zig.zip Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.11.0-dev.1350+bbab4beda\" - name: x86_64-windows -> x86_64-macos - run: zig build test -Dtarget=x86_64-macos + run: zig build -Dtarget=x86_64-macos env: AGREE: true - name: x86_64-windows -> aarch64-macos - run: zig build test -Dtarget=aarch64-macos + run: zig build -Dtarget=aarch64-macos env: AGREE: true - name: x86_64-windows -> x86_64-linux - run: zig build test -Dtarget=x86_64-linux + run: zig build -Dtarget=x86_64-linux - name: test run: zig build test x86_64-macos: @@ -80,10 +80,10 @@ jobs: env: AGREE: true - name: x86_64-macos -> aarch64-macos - run: zig build test -Dtarget=aarch64-macos + run: zig build -Dtarget=aarch64-macos env: AGREE: true - name: x86_64-macos -> x86_64-windows - run: zig build test -Dtarget=x86_64-windows + run: zig build -Dtarget=x86_64-windows - name: x86_64-macos -> x86_64-linux - run: zig build test -Dtarget=x86_64-linux + run: zig build -Dtarget=x86_64-linux diff --git a/libs/glfw/.github/workflows/m1_ci.yml b/libs/glfw/.github/workflows/m1_ci.yml index 0dfd963d..76952e0b 100644 --- a/libs/glfw/.github/workflows/m1_ci.yml +++ b/libs/glfw/.github/workflows/m1_ci.yml @@ -26,10 +26,10 @@ jobs: env: AGREE: true - name: aarch64-macos -> x86_64-macos - run: zig build test -Dtarget=x86_64-macos + run: zig build -Dtarget=x86_64-macos env: AGREE: true - name: aarch64-macos -> x86_64-windows - run: zig build test -Dtarget=x86_64-windows + run: zig build -Dtarget=x86_64-windows - name: aarch64-macos -> x86_64-linux - run: zig build test -Dtarget=x86_64-linux + run: zig build -Dtarget=x86_64-linux