From eb2cb20eba05b7a87ac839bb6819689523f09182 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni Date: Tue, 19 Nov 2024 14:35:57 -0800 Subject: [PATCH] Do not use shared YAML file --- .github/workflows/macos.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 94e47af18ad..56ad80a0b3c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -11,11 +11,29 @@ concurrency: cancel-in-progress: true jobs: + #skip_checks: + # name: Analyze + # uses: ./.github/workflows/skip_checks.yml + # with: + # runs-on: macos-latest skip_checks: - name: Analyze - uses: ./.github/workflows/skip_checks.yml - with: - runs-on: macos-latest + name: Skip + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Analyze PR + run: | + .github/workflows/scripts/check_diff.sh \ + ${{ github.event.pull_request.head.ref }} \ + ${{ github.event.pull_request.base.ref }} \ + ${{ github.event.pull_request.head.repo.clone_url }} + - name: Debug + run: echo "env.SKIP_CHECKS=${{ env.SKIP_CHECKS }}" + outputs: + skip: ${{ env.SKIP_CHECKS }} build_appleclang: name: AppleClang runs-on: macos-latest @@ -27,7 +45,7 @@ jobs: #CMAKE_GENERATOR: Ninja steps: - name: Debugging - run: echo "SKIP=${{ needs.skip_checks.outputs }}" + run: echo "SKIP=${{ needs.skip_checks.outputs.skip }}" - name: Checkout code uses: actions/checkout@v4 - name: Install Python