Merge pull request #2501 from nickel-lang/dependabot/github_actions/d… #316
This file contains hidden or 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: benchmark master | |
| on: | |
| push: | |
| branches: master | |
| jobs: | |
| benchmark-master: | |
| name: benchmark master | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: cachix/install-nix-action@v31 | |
| name: "Installing Nix" | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| accept-flake-config = true | |
| nix_path: "nixpkgs=channel:nixos-unstable" | |
| - uses: bencherdev/bencher@main | |
| - name: Track benchmarks on master | |
| run: | | |
| bencher run \ | |
| --project nickel \ | |
| --token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
| --branch master \ | |
| --testbed ubuntu-latest \ | |
| --adapter rust_criterion \ | |
| nix develop --command cargo bench --package nickel-lang-core --features=benchmark-ci --bench numeric --bench arrays | |
| bencher run \ | |
| --project nickel \ | |
| --token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
| --branch master \ | |
| --testbed ubuntu-latest \ | |
| --adapter rust_criterion \ | |
| nix develop --command cargo bench --package nickel-lang-lsp |