Skip to content

Commit efe5e86

Browse files
authored
Enhance CI workflow with benchmarks and deployment
Added steps to run benchmarks, install Python dependencies, and deploy results to GitHub Pages.
1 parent bbc9f9b commit efe5e86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
shell: bash
4949
working-directory: build
5050

51+
5152
- name: Run Benchmarks and Save Results
5253
working-directory: ${{github.workspace}}/build/bin
5354
run: |
@@ -63,6 +64,7 @@ jobs:
6364
uses: actions/setup-python@v5
6465
with:
6566
python-version: '3.x'
67+
6668

6769
- name: Install Python Dependencies
6870
working-directory: ${{github.workspace}}/scripts
@@ -84,6 +86,7 @@ jobs:
8486
# Copy the raw JSON to the deployment folder for public access
8587
cp ./build/bin/benchmark_result.json $OUTPUT_DIR/data/benchmark_result.json
8688
echo "Deployment folder contents prepared in: $OUTPUT_DIR"
89+
8790
8891
# --- 3. Artifact Upload (For Direct Download) ---
8992
- name: Upload Pages Artifact
@@ -93,19 +96,23 @@ jobs:
9396
path: gh-pages-output/ # Path to the folder to zip and upload
9497
retention-days: 7 # Keep for one week
9598

99+
96100
# --- 4. GitHub Pages Deployment (For Public Hosting) ---
97101
- name: Configure Pages Environment
98102
uses: actions/configure-pages@v5 # Sets up necessary environment variables
103+
99104

100105
- name: Upload Job Artifacts (Graphs & JSON Download)
101106
uses: actions/upload-pages-artifact@v3
102107
with:
103108
name: allocator-benchmark-results
104109
path: gh-pages-output/
110+
105111

106112
- name: Deploy to GitHub Pages
107113
id: deployment
108114
uses: actions/deploy-pages@v4 # Triggers the final site update
115+
109116

110117
- name: Report Deployment URL
111118
run: |

0 commit comments

Comments
 (0)