Nvim: continuous benchmarks #2
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: Neovim | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
bench: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: MunifTanjim/setup-neovim-action@v1 | |
with: | |
tag: v0.10.2 | |
- name: Install vim-startuptime | |
run: go install github.com/rhysd/vim-startuptime@latest | |
- name: Setup .config/nvim | |
run: | | |
mkdir -p ~/.config | |
cp -r .config/nvim ~/.config | |
- name: Run vim-startuptime | |
run: | | |
vim-startuptime -vimpath nvim | \ | |
awk '/Total Average/ {print $3}' | \ | |
jq -R '{"name": "Neovim Total Average Startup Time", "unit": "msec", "value": (. | tonumber)}' | \ | |
jq -s . > startuptime.json | |
- name: Download previous benchmark data | |
uses: actions/cache@v4 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Neovim Benchmark | |
tool: 'customSmallerIsBetter' | |
output-file-path: startuptime.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true |