Skip to content

Commit

Permalink
make building against latest liboqs optional
Browse files Browse the repository at this point in the history
move the build against liboqs/oqsprovider matrix builds
to a triggerable option not run automatically

Signed-off-by: Alex Bozarth <[email protected]>
  • Loading branch information
ajbozarth committed Nov 21, 2024
1 parent 536b568 commit e22e0eb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 23 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/curl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ on:
branches: [ 'main' ]
paths: ['.github/workflows/curl.yml', 'curl/**']
workflow_dispatch:
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:
Expand All @@ -18,12 +29,6 @@ jobs:
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
Expand All @@ -42,7 +47,7 @@ jobs:
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-curl

- name: Build the Docker image (dev)
Expand All @@ -53,7 +58,7 @@ jobs:
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
target: dev
tags: oqs-curl-dev

Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/httpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ on:
branches: [ 'main' ]
paths: ['.github/workflows/httpd.yml', 'httpd/**']
workflow_dispatch:
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:
Expand All @@ -18,12 +29,6 @@ jobs:
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
Expand All @@ -42,7 +47,7 @@ jobs:
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-httpd

- name: Build the curl Docker image
Expand All @@ -53,7 +58,7 @@ jobs:
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-curl

- name: Test httpd using curl
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/openssl3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ on:
branches: [ 'main' ]
paths: ['.github/workflows/openssl3.yml', 'openssl3/**']
workflow_dispatch:
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:
Expand All @@ -18,12 +29,6 @@ jobs:
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
Expand All @@ -42,7 +47,7 @@ jobs:
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ matrix.build.build-args }}
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-ossl3

- name: Spot-test - One baseline and one hybrid QSC alg
Expand Down

0 comments on commit e22e0eb

Please sign in to comment.