add a cycles.csv target which recomputes only if the inputs or the xdsl commit change #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run experiments | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-experiments: | |
runs-on: ubuntu-latest | |
container: ghcr.io/nazavode/snitch-toolchain:latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run experiments | |
run: scripts/run.sh --abort-on-error --tag cirun | |
- name: Read CSV | |
id: csv | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: results/cycles_cirun.csv | |
- name: Create MD | |
uses: petems/csv-to-md-table-action@master | |
id: csv-table-output | |
with: | |
csvinput: ${{ steps.csv.outputs.content }} | |
- uses: mshick/add-pr-comment@v1 | |
with: | |
message: | | |
${{steps.csv-table-output.outputs.markdown-table}} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens | |
allow-repeats: true |