From 4281a515e24fbee81d36935d9ad774e3df385286 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Thu, 17 Oct 2024 14:33:40 +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 7cdc0169d1d..320b71befa3 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 3224c6f584d..3d92a7ccb10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -195,7 +195,7 @@ jobs: uses: apache/nuttx-apps/.github/workflows/arch.yml@master needs: Fetch-Source with: - os: Linux + os: macOS boards: | ["macos", "sim-01", "sim-02"] @@ -255,7 +255,7 @@ jobs: uses: apache/nuttx-apps/.github/workflows/arch.yml@master needs: Fetch-Source with: - os: Linux + os: msys2 boards: | ["msys2"]