chore: bump v2 dep path #12
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
# Benchmark anna v/s other SSGs | |
name: Benchmark | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Hyperfine | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y hyperfine | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v3 | |
with: | |
hugo-version: 'latest' | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 'latest' | |
- name: Cache npm | |
uses: actions/[email protected] | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | |
- name: Cache Eleventy .cache | |
uses: actions/[email protected] | |
with: | |
path: ./.cache | |
key: ${{ runner.os }}-eleventy-fetch-cache | |
- run: npm install @11ty/eleventy | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Cache Cargo dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo- | |
- name: Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Install Dependencies | |
run: | | |
sudo apt-get install -y curl git | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
export PATH="$HOME/.cargo/bin:$PATH" | |
rustup default stable | |
rustup update | |
rustc --version | |
cargo --version | |
go version | |
- name: Run Benchmark | |
run: | | |
chmod +x test/bench.sh | |
./test/bench.sh |