Skip to content

Commit

Permalink
add curl and httpd workflows
Browse files Browse the repository at this point in the history
also update openssl3 workflow to only use the available 4 cores

Signed-off-by: Alex Bozarth <[email protected]>
  • Loading branch information
ajbozarth committed Nov 21, 2024
1 parent 0d55b45 commit 0609139
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 4 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/curl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build & Test - curl

on:
push:
branches: [ 'main' ]
paths: ['.github/workflows/curl.yml', 'curl/**']
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/curl.yml', 'curl/**']
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
build:
- name: release
- name: latest
build-args: |
LIBOQS_TAG=main
OQSPROVIDER_TAG=main
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: curl
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
tags: oqs-curl

- name: Build the Docker image (dev)
uses: docker/build-push-action@v6
with:
load: true
context: curl
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
target: dev
tags: oqs-curl-dev

- name: Spot-test - One baseline and one hybrid QSC alg
run: |
docker run -e TEST_TIME=5 -e KEM_ALG=kyber768 -e SIG_ALG=dilithium3 oqs-curl perftest.sh
64 changes: 64 additions & 0 deletions .github/workflows/httpd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build & Test - httpd

on:
push:
branches: [ 'main' ]
paths: ['.github/workflows/httpd.yml', 'httpd/**']
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/httpd.yml', 'httpd/**']
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
build:
- name: release
- name: latest
build-args: |
LIBOQS_TAG=main
OQSPROVIDER_TAG=main
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 httpd Docker image
uses: docker/build-push-action@v6
with:
load: true
context: httpd
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
tags: oqs-httpd

- name: Build the curl Docker image
uses: docker/build-push-action@v6
with:
load: true
context: curl
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
tags: oqs-curl

- name: Spot-test - One baseline and one hybrid QSC alg
run: |
docker network create httpd-test &&
docker run --network httpd-test --detach --rm --name oqs-httpd oqs-httpd &&
sleep 2 &&
docker run --network httpd-test oqs-curl curl -k https://oqs-httpd:4433 --curves kyber768
8 changes: 4 additions & 4 deletions .github/workflows/openssl3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
context: openssl3
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j 18
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
tags: oqs-ossl3-img
tags: oqs-ossl3

- name: Spot-test - One baseline and one hybrid QSC alg
run: |
docker run --rm --name oqs-ossl3 oqs-ossl3-img sh -c "openssl list -providers; /opt/openssl32/bin/serverstart.sh; sleep 2; echo 'GET /' | openssl s_client -connect localhost --groups kyber768 --CAfile /opt/openssl32/bin/CA.crt" &&
docker run --rm --name oqs-ossl3 oqs-ossl3-img sh -c "KEM_ALG=p521_frodo1344aes /opt/openssl32/bin/serverstart.sh; sleep 2; echo 'GET /' | openssl s_client -connect localhost --groups p521_frodo1344aes --CAfile /opt/openssl32/bin/CA.crt"
docker run --rm --name oqs-ossl3 oqs-ossl3 sh -c "openssl list -providers; /opt/openssl32/bin/serverstart.sh; sleep 2; echo 'GET /' | openssl s_client -connect localhost --groups kyber768 --CAfile /opt/openssl32/bin/CA.crt" &&
docker run --rm --name oqs-ossl3 oqs-ossl3 sh -c "KEM_ALG=p521_frodo1344aes /opt/openssl32/bin/serverstart.sh; sleep 2; echo 'GET /' | openssl s_client -connect localhost --groups p521_frodo1344aes --CAfile /opt/openssl32/bin/CA.crt"

0 comments on commit 0609139

Please sign in to comment.