Skip to content

Add crypto callback support for SM 2/3/4 #1858

Add crypto callback support for SM 2/3/4

Add crypto callback support for SM 2/3/4 #1858

Workflow file for this run

name: Benchmark
on:
push:
branches: [ 'master', 'main', 'release/**' ]
schedule:
# Weekly ccache reseed; also keeps caches from 7-day eviction
- cron: '0 6 * * 1'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
# List host CPU info
- name: Host CPU info
run: cat /proc/cpuinfo
# List compiler version
- name: List compiler version
run: gcc --version
# pull and build wolfssl
- name: Checkout wolfssl
uses: actions/checkout@v4
with:
repository: wolfssl/wolfssl
path: wolfssl
# Compiler cache; PR runs restore without saving
- name: Set up ccache
uses: ./.github/actions/ccache-setup
with:
workflow-id: build-and-bench
read-only: ${{ github.event_name == 'pull_request' }}
# Benchmark with everything enabled
- name: Benchmark All
run: cd benchmark && make clean && make WOLFSSL_DIR=../wolfssl DMA=1 && make run
# Benchmark with DEBUG_VERBOSE=1 (includes DEBUG)
- name: Benchmark with DEBUG_VERBOSE
run: cd benchmark && make clean && make -j DEBUG_VERBOSE=1 WOLFSSL_DIR=../wolfssl && make run