Skip to content

Commit ff2e4fb

Browse files
authored
[CI] Add perf collector job for macOS (learning-process#572)
close learning-process#197
1 parent 70d580e commit ff2e4fb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/perf.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,39 @@ 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 --break-system-packages
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: 1
64+
PPC_NUM_THREADS: 2
65+
- name: Archive results
66+
working-directory: build
67+
run: zip -r perf-stat-macos.zip perf_stat_dir
68+
- name: Upload results
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: perf-stat-macos
72+
path: perf-stat-macos.zip

0 commit comments

Comments
 (0)