chore(ci): update nix & cachix GH action versions #144
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 Benchmarks | |
on: | |
push: | |
branches-ignore: [ main, docs ] | |
paths: | |
- '**.nim*' | |
- '**.cfg' | |
- '.github/workflows/**' | |
pull_request: | |
branches-ignore: [ main, docs ] | |
paths: | |
- '**.nim*' | |
- '**.cfg' | |
- '.github/workflows/**' | |
jobs: | |
run-benchmarks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch repo's pushed branch | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-22.05 | |
- name: Setup cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: my-dotfiles # Holds the cached flake, so not to build it | |
- name: Run benchmarks | |
run: | | |
nix shell -c nimble install benchy -y | |
nix shell -c nimble install pixie -y | |
nix shell -c nimble benchmark |