CI #280
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: 0 0 * * 0 | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: main | |
- name: Run benchmarks | |
uses: ./main/.github/action | |
with: | |
cmd: | | |
cd main && \ | |
source run.zsh && \ | |
gnuplot -e "zsh_version = 'zsh $ZSH_VERSION'" -c plot-graph | |
- uses: actions/checkout@v4 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
repository: zimfw/zimfw.github.io | |
token: ${{ secrets.PAT }} | |
path: artifacts | |
- name: Push images/results.svg | |
if: ${{ github.ref == 'refs/heads/master' }} | |
working-directory: artifacts | |
run: | | |
cp ../main/results.svg images/results.svg && \ | |
git config user.name github-actions && \ | |
git config user.email github-actions@github.com && \ | |
git add images/results.svg && \ | |
git commit -m "Update images/results.svg" && \ | |
git push | |
- uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
path: | | |
main/results/*.log | |
main/results/results.csv | |
main/results.svg |