From 58868e0e1b88ecce8c8c60cef25d51c046fce0d0 Mon Sep 17 00:00:00 2001 From: Alex Bozarth Date: Mon, 25 Nov 2024 14:51:34 -0600 Subject: [PATCH] locust workflow note this workflow does not have tests yet Signed-off-by: Alex Bozarth --- .github/workflows/locust.yml | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/locust.yml diff --git a/.github/workflows/locust.yml b/.github/workflows/locust.yml new file mode 100644 index 0000000..01aba43 --- /dev/null +++ b/.github/workflows/locust.yml @@ -0,0 +1,55 @@ +name: Build & Test - locust + +on: + push: + branches: [ '*' ] + 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 + + - name: Test locust + run: | + echo "locust tests TBA"