mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 22:57:59 -05:00
chore(ci): add workflow to trigger all benchmarks automatically
This commit is contained in:
36
.github/workflows/start_benchmarks.yml
vendored
Normal file
36
.github/workflows/start_benchmarks.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Start all benchmark jobs on Slab CI bot.
|
||||||
|
name: Start all benchmarks
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
start-benchmarks:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
command: [boolean_bench, shortint_bench]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Slab repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: zama-ai/slab
|
||||||
|
path: slab
|
||||||
|
token: ${{ secrets.CONCRETE_ACTIONS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Start AWS job in Slab
|
||||||
|
shell: bash
|
||||||
|
# TODO: step result must be correlated to HTTP return code.
|
||||||
|
run: |
|
||||||
|
echo -n '{"command": "${{ matrix.command }}", "git_ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' > command.json
|
||||||
|
SIGNATURE="$(slab/scripts/hmac_calculator.sh command.json '${{ secrets.JOB_SECRET }}')"
|
||||||
|
curl -v -k \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "X-Slab-Repository: ${{ github.repository }}" \
|
||||||
|
-H "X-Slab-Command: start_aws" \
|
||||||
|
-H "X-Hub-Signature-256: sha256=${SIGNATURE}" \
|
||||||
|
-d @command.json \
|
||||||
|
${{ secrets.SLAB_URL }}
|
||||||
Reference in New Issue
Block a user