Skip to content

Commit

Permalink
locust workflow
Browse files Browse the repository at this point in the history
note this workflow does not include tests

Signed-off-by: Alex Bozarth <[email protected]>
  • Loading branch information
ajbozarth committed Nov 25, 2024
1 parent 5f41da1 commit b1d5079
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
with:
build_main: ${{ github.event.inputs.build_main }}

httpd:
uses: ./.github/workflows/httpd.yml
with:
build_main: ${{ github.event.inputs.build_main }}

h2load:
uses: ./.github/workflows/h2load.yml
with:
Expand All @@ -37,6 +32,16 @@ jobs:
with:
build_main: ${{ github.event.inputs.build_main }}

httpd:
uses: ./.github/workflows/httpd.yml
with:
build_main: ${{ github.event.inputs.build_main }}

locust:
uses: ./.github/workflows/locust.yml
with:
build_main: ${{ github.event.inputs.build_main }}

nginx:
uses: ./.github/workflows/nginx.yml
with:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/locust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build - locust

on:
push:
branches: [ 'main' ]
paths: ['.github/workflows/locust.yml', 'locust/**']
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/locust.yml', 'locust/**']
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
required: false
default: false
type: boolean

env:
build-args: |
LIBOQS_TAG=main
OQSPROVIDER_TAG=main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build the Docker image
uses: docker/build-push-action@v6
with:
load: true
context: locust
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-locust

0 comments on commit b1d5079

Please sign in to comment.