Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/build-wolfprovider-debian-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Nightly Build wolfProvider

on:
schedule:
# Jenkins: 2AM UTC nightly - Actual nightly build
# GitHub Actions: 3AM UTC nightly - Update build in github
- cron: "0 3 * * *"
workflow_dispatch:
inputs:
wolfssl_ref:
description: 'wolfSSL ref (tag/branch)'
required: false
default: 'v5.8.2-stable'
type: string
openssl_ref:
description: 'OpenSSL ref (tag/branch)'
required: false
default: 'openssl-3.5.2'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that in the case of debian, we ignore the version field and use whatever comes from Debian

type: string
fips_ref:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Openssl build is agnostic of the fips setting, so we may want to specifically exclude that

description: 'Build type'
required: false
default: 'both'
type: choice
options:
- 'both'
- 'FIPS'
- 'non-FIPS'
replace_default:
description: 'Replace default provider'
required: false
default: true
type: boolean
build_packages:
description: 'build fresh via Jenkins (true) or use downloaded packages (false)'
required: false
type: boolean
default: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_wolfprovider_debian:
name: Build wolfProvider Debian
# Only run Jenkins builds on schedule/dispatch from protected branches
if: ${{ github.event_name != 'pull_request' && github.event_name != 'pull_request_target' }}
uses: ./.github/workflows/build-wolfprovider-debian.yml
strategy:
matrix:
# When manually triggered with 'both', or on schedule, build both FIPS and non-FIPS
# When manually triggered with specific type, only build that type
fips_ref: >-
${{ (github.event_name == 'schedule'
|| github.event.inputs.fips_ref == 'both'
|| github.event.inputs.fips_ref == '')
&& fromJSON('["FIPS", "non-FIPS"]')
|| fromJSON(format('["{0}"]', github.event.inputs.fips_ref)) }}
with:
wolfssl_ref: ${{ github.event.inputs.wolfssl_ref || 'v5.8.2-stable' }}
openssl_ref: ${{ github.event.inputs.openssl_ref || 'openssl-3.5.2' }}
fips_ref: ${{ matrix.fips_ref }}
replace_default: ${{ github.event.inputs.replace_default != 'false' }}
build_packages: ${{ github.event.inputs.build_packages == 'true' }}
secrets: inherit
Loading
Loading