From ec18c37134d31011b58b3270c01531521007df4a Mon Sep 17 00:00:00 2001 From: Naman Nandan Date: Wed, 1 May 2024 10:33:16 -0700 Subject: [PATCH] Update ci and regression cpu workflow for MAC --- .github/workflows/ci_cpu.yml | 28 ++++++++++++---------- .github/workflows/regression_tests_cpu.yml | 27 +++++++++++---------- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci_cpu.yml b/.github/workflows/ci_cpu.yml index 0c47dba344c..7361b53fae8 100644 --- a/.github/workflows/ci_cpu.yml +++ b/.github/workflows/ci_cpu.yml @@ -1,14 +1,7 @@ name: CI CPU on: - workflow_dispatch: - push: - branches: - - master - pull_request: - branches: - - master - merge_group: + push concurrency: @@ -21,18 +14,27 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macOS-latest] + os: [macos-latest-xlarge] steps: + - name: Check xz version + if: matrix.os == 'macos-latest-xlarge' + run: | + xz -V + - name: GPU detection + if: matrix.os == 'macos-latest-xlarge' + run: | + system_profiler SPDisplaysDataType - name: Setup Python for M1 - if: matrix.os == 'macos-14' + if: matrix.os == 'macos-latest-xlarge' uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' + architecture: arm64 - name: Setup Python for all other OS - if: matrix.os != 'macos-14' + if: matrix.os != 'macos-latest-xlarge' uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: '3.9' architecture: x64 - name: Setup Java 17 uses: actions/setup-java@v3 diff --git a/.github/workflows/regression_tests_cpu.yml b/.github/workflows/regression_tests_cpu.yml index b9e9044afea..0e421d1b20a 100644 --- a/.github/workflows/regression_tests_cpu.yml +++ b/.github/workflows/regression_tests_cpu.yml @@ -1,13 +1,7 @@ name: Run Regression Tests on CPU on: - push: - branches: - - master - pull_request: - branches: - - master - merge_group: + push concurrency: group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} @@ -20,18 +14,27 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macOS-latest] + os: [macos-latest-xlarge] steps: + - name: Check xz version + if: matrix.os == 'macos-latest-xlarge' + run: | + xz -V + - name: GPU detection + if: matrix.os == 'macos-latest-xlarge' + run: | + system_profiler SPDisplaysDataType - name: Setup Python for M1 - if: matrix.os == 'macos-14' + if: matrix.os == 'macos-latest-xlarge' uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' + architecture: arm64 - name: Setup Python for all other OS - if: matrix.os != 'macos-14' + if: matrix.os != 'macos-latest-xlarge' uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: '3.9' architecture: x64 - name: Setup Java 17 uses: actions/setup-java@v3