Skip to content

Conversation

@padelsbach
Copy link
Contributor

@padelsbach padelsbach commented Jun 10, 2025

This speeds up the Wolfprovider build from about 4m30 to about 1m15.

Currently, our github actions rebuild openssl for every push even though the openssl version rarely changes.

The logs show something like this for each job:

Run actions/cache@v4
  with:
    path: openssl-source
  openssl-install
  
    key: ossl-depends-openssl-3.5.0-a4[2](https://github.com/wolfSSL/wolfProvider/actions/runs/15569582457/job/43841996275?pr=152#step:4:2)6b4b8556a7da5e7ba[3](https://github.com/wolfSSL/wolfProvider/actions/runs/15569582457/job/43841996275?pr=152#step:4:3)4fddd6a6b18b64dfc21
    lookup-only: true
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    save-always: false
Cache not found for input keys: ossl-depends-openssl-3.5.0-a[4](https://github.com/wolfSSL/wolfProvider/actions/runs/15569582457/job/43841996275?pr=152#step:4:4)26b4b8556a7da5e7ba34fddd[6](https://github.com/wolfSSL/wolfProvider/actions/runs/15569582457/job/43841996275?pr=152#step:4:6)a6b18b64dfc21

After this change, there is a cache hit for openssl:

Run actions/cache@v4
  
Cache hit for: ossl-depends-openssl-3.5.0
Received 230686720 of 422306499 (54.6%), 218.9 MBs/sec
Received 422306499 of 422306499 (100.0%), 206.5 MBs/sec
Cache Size: ~403 MB (422306499 B)
/usr/bin/tar -xf /home/runner/work/_temp/02abd251-f3fb-42b6-8077-7105db098cf3/cache.tzst -P -C /home/runner/work/wolfProvider/wolfProvider --use-compress-program unzstd
Cache restored successfully
Cache restored from key: ossl-depends-openssl-3.5.0

@padelsbach padelsbach force-pushed the wp_ossl_cache branch 24 times, most recently from 35e2c9b to 90679a5 Compare June 11, 2025 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant