Skip to content

Commit 839158d

Browse files
committed
[CI] Add perf collector job for macOS
1 parent d6e198c commit 839158d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/perf.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,40 @@ jobs:
3434
with:
3535
name: perf-stat
3636
path: perf-stat.zip
37+
macos-clang-build-perf-stats:
38+
runs-on: macOS-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Install Xcode
42+
uses: maxim-lobanov/setup-xcode@v1
43+
with:
44+
xcode-version: 'latest-stable'
45+
- name: Setup environment
46+
run: |
47+
brew update
48+
brew install ninja mpich llvm libomp openssl
49+
brew link libomp --overwrite --force
50+
python3 -m pip install -r requirements.txt
51+
- name: Download installed package
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: macos-clang-install
55+
- name: Extract installed package
56+
run: |
57+
mkdir -p install
58+
tar -xzvf macos-clang-install.tar.gz -C install
59+
- name: Run perf tests
60+
run: |
61+
bash -e scripts/generate_perf_results.sh
62+
env:
63+
PPC_NUM_PROC: 2
64+
PPC_NUM_THREADS: 2
65+
- name: Archive results
66+
uses: montudor/action-zip@v1
67+
with:
68+
args: zip -qq -r perf-stat-macos.zip build/perf_stat_dir
69+
- name: Upload results
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: perf-stat-macos
73+
path: perf-stat-macos.zip

0 commit comments

Comments
 (0)