Bump securego/gosec from 2.20.0 to 2.21.2 #64
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
name: Benchmark | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!**.md' | |
pull_request: | |
paths: | |
- '**' | |
- '!**.md' | |
jobs: | |
Compare: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.26.x' | |
- name: Fetch Repository | |
uses: actions/checkout@v4 | |
- name: Build And Install C++ Library | |
run: | | |
cmake --version | |
cd ${{github.workspace}} | |
mkdir build | |
cd build | |
cmake .. | |
make | |
sudo make install | |
ls | |
- name: Run Benchmark | |
run: | | |
ls /usr/local/lib | grep libtokenizer | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | |
set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt | |
- name: Get Previous Benchmark Results | |
uses: actions/cache@v4 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Save Benchmark Results | |
uses: benchmark-action/[email protected] | |
with: | |
tool: 'go' | |
output-file-path: output.txt | |
github-token: ${{ secrets.BENCHMARK_TOKEN }} | |
benchmark-data-dir-path: 'benchmarks' | |
fail-on-alert: true | |
comment-on-alert: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
# Enable Job Summary for PRs - deactivated because of issues | |
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }} | |
auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} |