Skip to content

Commit

Permalink
Update ci and regression cpu workflow for MAC
Browse files Browse the repository at this point in the history
  • Loading branch information
namannandan committed May 1, 2024
1 parent 4ec7518 commit ec18c37
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci_cpu.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: CI CPU

on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
merge_group:
push


concurrency:
Expand All @@ -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
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/regression_tests_cpu.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit ec18c37

Please sign in to comment.