From e75ac114c121b2194aeabe4f1a5bdefdafd847b4 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Thu, 17 Oct 2024 14:33:44 +0800 Subject: [PATCH] CI: Disable all jobs for macOS and Windows This PR disables all CI Jobs for macOS and Windows, to reduce GitHub Cost. Details here: https://github.com/apache/nuttx/issues/14376 --- .github/workflows/arch.yml | 7 +++++++ .github/workflows/build.yml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index 966765eefa..fafb33c8a4 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -97,6 +97,13 @@ jobs: id: select-builds run: | + # Skip all macOS and Windows Builds + if [[ "${{ inputs.os }}" != "Linux" ]]; then + echo "Skipping all macOS and Windows Builds" + echo "skip_all_builds=1" | tee -a $GITHUB_OUTPUT + exit + fi + # Fetch the outputs from the previous step numlabels=${{ steps.get-arch.outputs.numlabels }} labels_contain_size=${{ steps.get-arch.outputs.labels_contain_size }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de802ef83f..562d3dbded 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -200,7 +200,7 @@ jobs: uses: apache/nuttx/.github/workflows/arch.yml@master needs: Fetch-Source with: - os: Linux + os: macOS boards: | ["macos", "sim-01", "sim-02"] @@ -260,7 +260,7 @@ jobs: uses: apache/nuttx/.github/workflows/arch.yml@master needs: Fetch-Source with: - os: Linux + os: msys2 boards: | ["msys2"]