-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 932 Bytes
/
benchmark.yml
File metadata and controls
33 lines (33 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Benchmark
on:
workflow_run:
workflows: ["CI"]
types:
- completed
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
benchmark:
name: Run Benchmarks
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: macOS-26
env:
DEVELOPER_DIR: "/Applications/Xcode_26.0.app/Contents/Developer"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Swift Version
run: xcrun swift --version
- name: Install jemalloc
run: |
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
brew install jemalloc
- name: Run Parsing Benchmarks
run: |
xcrun swift package benchmark --format markdown >> $GITHUB_STEP_SUMMARY