Merge pull request #182 from michaelballantyne/main #28
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: competitive-benchmarks | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'qi-sdk/benchmarks/competitive/**' | |
- 'qi-lib/**' | |
- '.github/workflows/competitive-benchmarks.yml' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
deploy-benchmarks: | |
runs-on: ubuntu-latest | |
name: Generate and deploy competitive benchmarks | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Install Racket | |
uses: Bogdanp/[email protected] | |
with: | |
architecture: 'x64' | |
distribution: 'full' | |
variant: 'CS' | |
version: 'stable' | |
- name: Install Package and its Dependencies | |
run: make install | |
- name: Install SDK | |
run: make install-sdk | |
- name: Run benchmark | |
shell: 'bash --noprofile --norc -eo pipefail {0}' | |
run: make new-benchmarks | |
- name: Push to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: qi-sdk/benchmarks/competitive/results | |
target-folder: competitive-benchmarks | |
branch: gh-pages | |
clean: true |