forked from open-quantum-safe/oqs-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also update openssl3 workflow to only use the available 4 cores Signed-off-by: Alex Bozarth <[email protected]>
- Loading branch information
Showing
3 changed files
with
130 additions
and
4 deletions.
There are no files selected for viewing
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
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 |
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
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 |
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