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
35 changes: 0 additions & 35 deletions .github/workflows/asan.yml

This file was deleted.

77 changes: 54 additions & 23 deletions .github/workflows/build-wolfprovider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,87 @@ on:
openssl_ref:
required: true
type: string
outputs:
cache_key:
description: "Cache key for the build artifacts"
value: ${{ jobs.build_wolfprovider.outputs.cache_key }}

jobs:
build_wolfprovider:
bwp:
name: Build wolfProvider
runs-on: ubuntu-22.04
timeout-minutes: 20
outputs:
cache_key: wolfprov-${{ inputs.wolfssl_ref }}-${{ github.sha }}
steps:
# Must come first so that the directory is present
- name: Checkout wolfProvider
uses: actions/checkout@v4
with:
fetch-depth: 1

# Enable ccache to speed up builds
# # Must be after the checkout step
# - name: ccache
# if: steps.wolfprov-cache.outputs.cache-hit != 'true'
# uses: hendrikmuhs/ccache-action@v1.2
# with:
# create-symlink: true

# Check if this version of wolfssl/wolfprovider has already been built,
# mark to cache these items on post if we do end up building
- name: Checking wolfSSL/wolfProvider in cache
uses: actions/cache@v4
id: wolfprov-cache
with:
path: |
wolfssl-source
wolfssl-install
wolfprov-install
provider.conf
# - name: Checking wolfSSL/wolfProvider in cache
# uses: actions/cache/restore@v4
# id: wolfprov-cache
# with:
# path: |
# wolfssl-source
# wolfssl-install
# wolfprov-install
# provider.conf

key: wolfprov-${{ inputs.wolfssl_ref }}-${{ github.sha }}
lookup-only: true
# key: wolfprov-${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}
# # no need to restore from cache here since it will be restored
# # in the main workflows
# lookup-only: true

# If wolfssl/wolfprovider have not yet been built, pull ossl from cache
- name: Checking OpenSSL in cache
if: steps.wolfprov-cache.outputs.cache-hit != 'true'
uses: actions/cache@v4
# if: steps.wolfprov-cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@v4
id: openssl-cache
with:
path: |
openssl-source
openssl-install

key: ossl-depends-${{ inputs.openssl_ref }}-${{ github.sha }}
lookup-only: true
key: ossl-depends-${{ inputs.openssl_ref }}
lookup-only: false

# If wolfssl/wolfprovider have not yet been built, pull wolfssl from cache
- name: Checking WolfSSL in cache
# if: steps.wolfprov-cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@v4
id: wolfssl-cache
with:
path: |
wolfssl-source
wolfssl-install

key: wolfssl-depends-${{ inputs.wolfssl_ref }}
lookup-only: false

# If not yet built this version, build it now
- name: Build wolfProvider
if: steps.wolfprov-cache.outputs.cache-hit != 'true'
# if: steps.wolfprov-cache.outputs.cache-hit != 'true'
run: |
OPENSSL_TAG=${{ inputs.openssl_ref }} WOLFSSL_TAG=${{ inputs.wolfssl_ref }} ./scripts/build-wolfprovider.sh

- name: Save wolfProvider into cache
# if: steps.wolfprov-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
wolfssl-source
wolfssl-install
wolfprov-install
provider.conf
key: wolfprov-${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}

- name: Print errors
if: ${{ failure() }}
run: |
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/cjose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,15 @@ jobs:
sparse-checkout: |
.github

- name: Retrieving OpenSSL from cache
- name: Retrieving wolfProvider from cache
uses: actions/cache/restore@v4
id: openssl-cache
id: wolfprov-cache-restore
with:
path: |
openssl-source
openssl-install

key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
fail-on-cache-miss: true

- name: Retrieving wolfSSL/wolfProvider from cache
uses: actions/cache/restore@v4
id: wolfprov-cache
with:
path: |
wolfssl-source
wolfssl-install
wolfprov-install
provider.conf

key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
fail-on-cache-miss: true

- name: Install cjose dependencies
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/codespell.yml

This file was deleted.

105 changes: 0 additions & 105 deletions .github/workflows/curl.yml

This file was deleted.

Loading
Loading