Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c978553

Browse files
committedMar 17, 2025·
adjust ci workflow
1 parent bec5abf commit c978553

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed
 

‎.github/workflows/benchmark.yaml

+1-29
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121

2222
- name: Build xgrammar from source
2323
run: |
24-
echo "set(XGRAMMAR_BUILD_CXX_TESTS ON)" >> cmake/config.cmake
2524
python -m pip install --upgrade pip
26-
pip install -e .
25+
pip install .
2726
2827
- name: Install dependencies
2928
run: |
@@ -39,30 +38,3 @@ jobs:
3938
with:
4039
name: benchmark-results
4140
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-
});

0 commit comments

Comments
 (0)
Please sign in to comment.