Skip to content

πŸ“ update benchmark result #10

πŸ“ update benchmark result

πŸ“ update benchmark result #10

Workflow file for this run

name: Zig BDHKE Test and Benchmark
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
ZIG_VERSION: 0.14.0-dev.909+f9f894200
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Zig
uses: actions/cache@v3
with:
path: ~/zig
key: ${{ runner.os }}-zig-${{ env.ZIG_VERSION }}
- name: Install Zig
if: steps.cache.outputs.cache-hit != 'true'
run: |
wget https://ziglang.org/builds/zig-linux-x86_64-${{ env.ZIG_VERSION }}.tar.xz
tar -xf zig-linux-x86_64-${{ env.ZIG_VERSION }}.tar.xz
mv zig-linux-x86_64-${{ env.ZIG_VERSION }} ~/zig
- name: Add Zig to PATH
run: echo "${HOME}/zig" >> $GITHUB_PATH
- name: Cache Zig build artifacts
uses: actions/cache@v3
with:
path: |
zig-cache
~/.cache/zig
key: ${{ runner.os }}-zig-build-${{ hashFiles('**/*.zig') }}
restore-keys: |
${{ runner.os }}-zig-build-
- name: Build and Run
run: zig build run
- name: Run benchmarks with report
run: zig build bench -- --report
- name: Upload benchmark report
uses: actions/upload-artifact@v3
with:
name: benchmark-report
path: benchmark_report.csv