Skip to content

Commit

Permalink
fix(ci/cd): tmp remove benchmarks (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNineteen authored Dec 17, 2024
1 parent 9c739fd commit 7f4165b
Showing 1 changed file with 83 additions and 83 deletions.
166 changes: 83 additions & 83 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: test
run: |
zig build test -Denable-tsan=true
zig build test -Denable-tsan=true
zig build test -Denable-tsan=true -Dblockstore=hashmap -Dfilter=ledger
kcov_test:
Expand Down Expand Up @@ -170,90 +170,90 @@ jobs:
- name: run
run: ./zig-out/bin/fuzz allocators 19 10000

benchmarks:
if: ${{ github.ref != 'refs/heads/main' }}
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
timeout-minutes: 60
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: setup zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- name: benchmarks
run: zig build -Doptimize=ReleaseSafe benchmark -- all --metrics
# benchmarks:
# if: ${{ github.ref != 'refs/heads/main' }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# runs-on: ${{matrix.os}}
# timeout-minutes: 60
# steps:
# - name: checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: setup zig
# uses: mlugg/setup-zig@v1
# with:
# version: 0.13.0
# - name: benchmarks
# run: zig build -Doptimize=ReleaseSafe benchmark -- all --metrics

# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
# # Download previous benchmark result from cache (if exists)
# - name: Download previous benchmark data
# uses: actions/cache@v4
# with:
# path: ./cache
# key: ${{ runner.os }}-benchmark

# Run `github-action-benchmark` action
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
# What benchmark tool the output.txt came from
tool: "customSmallerIsBetter"
# Where the output from the benchmark tool is stored
output-file-path: results/output.json
# Where the previous data file is stored
external-data-json-path: ./cache/benchmark-data.json
# Workflow will fail when an alert happens
fail-on-alert: true
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
# Enable alert commit comment
comment-on-alert: true
# Upload the updated cache file for the next job by actions/cache
# only when running on the main branch
save-data-file: false
# # Run `github-action-benchmark` action
# - name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# # What benchmark tool the output.txt came from
# tool: "customSmallerIsBetter"
# # Where the output from the benchmark tool is stored
# output-file-path: results/output.json
# # Where the previous data file is stored
# external-data-json-path: ./cache/benchmark-data.json
# # Workflow will fail when an alert happens
# fail-on-alert: true
# # GitHub API token to make a commit comment
# github-token: ${{ secrets.GITHUB_TOKEN }}
# # Enable alert commit comment
# comment-on-alert: true
# # Upload the updated cache file for the next job by actions/cache
# # only when running on the main branch
# save-data-file: false

main_benchmarks:
if: ${{ github.ref == 'refs/heads/main' }}
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
timeout-minutes: 60
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: setup zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- name: benchmarks
run: zig build -Doptimize=ReleaseSafe benchmark -- all --metrics
# main_benchmarks:
# if: ${{ github.ref == 'refs/heads/main' }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# runs-on: ${{matrix.os}}
# timeout-minutes: 60
# steps:
# - name: checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: setup zig
# uses: mlugg/setup-zig@v1
# with:
# version: 0.13.0
# - name: benchmarks
# run: zig build -Doptimize=ReleaseSafe benchmark -- all --metrics

# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
# # Download previous benchmark result from cache (if exists)
# - name: Download previous benchmark data
# uses: actions/cache@v4
# with:
# path: ./cache
# key: ${{ runner.os }}-benchmark

# Run `github-action-benchmark` action
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
# What benchmark tool the output.txt came from
tool: "customSmallerIsBetter"
# Where the output from the benchmark tool is stored
output-file-path: results/output.json
# Where the previous data file is stored
external-data-json-path: ./cache/benchmark-data.json
# Workflow will fail when an alert happens
fail-on-alert: true
# Upload the updated cache file for the next job by actions/cache
# only when running on the main branch (see if:)
save-data-file: true
# # Run `github-action-benchmark` action
# - name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# # What benchmark tool the output.txt came from
# tool: "customSmallerIsBetter"
# # Where the output from the benchmark tool is stored
# output-file-path: results/output.json
# # Where the previous data file is stored
# external-data-json-path: ./cache/benchmark-data.json
# # Workflow will fail when an alert happens
# fail-on-alert: true
# # Upload the updated cache file for the next job by actions/cache
# # only when running on the main branch (see if:)
# save-data-file: true

0 comments on commit 7f4165b

Please sign in to comment.