Update README.md: Add link to Juliacon video (#72) #57
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
# Do not run this workflow on pull request since this workflow has permission to modify contents. | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
# deployments permission to deploy GitHub pages website | |
deployments: write | |
# contents permission to update benchmark contents in gh-pages branch | |
contents: write | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: Run benchmark | |
run: | | |
julia --project=benchmark --color=yes -e ' | |
using Pkg; | |
Pkg.develop(PackageSpec(path=pwd())) | |
Pkg.instantiate(); | |
include("benchmark/benchmarks.jl")' | |
# - name: Download previous benchmark data | |
# uses: actions/cache@v4 | |
# with: | |
# path: ./cache | |
# key: benchmark | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: 'julia' | |
output-file-path: output.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: '200%' | |
# Enable alert commit comment | |
comment-on-alert: false | |
# Do not fail on alert. | |
fail-on-alert: false | |
# Enable Job Summary for PRs | |
summary-always: true | |
# alert-comment-cc-users: '@lrnv' # could be added to get notifications. | |
# Change output directory in the gh-pages: | |
benchmark-data-dir-path: "benchmarks" |