Skip to content

Commit

Permalink
tmp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
francois141 committed Dec 17, 2024
1 parent 711bed3 commit 68c1a17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Push Stats

on:
push:
branches: [ "main" ]
branches: [ "add-cycles-benchmark" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -28,7 +28,11 @@ jobs:
- name: Setup Toolchain
run: just install-toolchain
- name: Install spike
run: echo "installing spike" # TODO: Do this step
run: |
wget --no-verbose https://github.com/epfl-dcsl/spike-ci-artifact/releases/download/v0.1.3/spike
chmod +x spike
echo "$PWD" >> $GITHUB_PATH
sudo apt install device-tree-compiler
- name: Benchmark cycles
run: cargo run -- run --firmware tracing_firmware --config ./config/test/spike-latency-benchmark.toml > cycles.txt
- name: Push stats
Expand Down
4 changes: 2 additions & 2 deletions misc/push_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ payload_cost=$(grep -i "Payload cost :" "$file" | sed -E 's/.*Payload cost : ([0

# Check if a number was found
if [ -n "$firmware_cost" ]; then
echo "$firmware_cost"
echo "Firmware cost: $firmware_cost"
else
echo "No firmware cost found in the file."
fi

# Check if a number was found
if [ -n "$payload_cost" ]; then
echo "$payload_cost"
echo "Payload cost: $payload_cost"
else
echo "No firmware cost found in the file."
fi
Expand Down

0 comments on commit 68c1a17

Please sign in to comment.