File tree 1 file changed +1
-29
lines changed
1 file changed +1
-29
lines changed Original file line number Diff line number Diff line change 21
21
22
22
- name : Build xgrammar from source
23
23
run : |
24
- echo "set(XGRAMMAR_BUILD_CXX_TESTS ON)" >> cmake/config.cmake
25
24
python -m pip install --upgrade pip
26
- pip install -e .
25
+ pip install .
27
26
28
27
- name : Install dependencies
29
28
run : |
39
38
with :
40
39
name : benchmark-results
41
40
path : benchmark_output.txt
42
-
43
- - name : Post benchmark results
44
- if : github.event_name == 'pull_request'
45
- uses : actions/github-script@v7
46
- with :
47
- script : |
48
- const fs = require('fs');
49
- const benchmarkOutput = fs.readFileSync('benchmark_output.txt', 'utf8');
50
-
51
- // Extract the results section
52
- const resultsSection = benchmarkOutput.split('===== XGrammar Benchmark Results =====')[1] || benchmarkOutput;
53
-
54
- const comment = `## XGrammar Benchmark Results
55
-
56
- \`\`\`
57
- ${resultsSection.trim()}
58
- \`\`\`
59
-
60
- [Full Results](${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID})
61
- `;
62
-
63
- github.rest.issues.createComment({
64
- issue_number: context.issue.number,
65
- owner: context.repo.owner,
66
- repo: context.repo.repo,
67
- body: comment
68
- });
You can’t perform that action at this time.
0 commit comments