Skip to content

Commit 6868fb7

Browse files
committed
Cant use common.yml will make slower if define as a step which would be needed
1 parent 7b0d6a7 commit 6868fb7

File tree

11 files changed

+220
-68
lines changed

11 files changed

+220
-68
lines changed

.github/workflows/common.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/curl.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,29 @@ jobs:
4141
- name: Checkout wolfProvider
4242
uses: actions/checkout@v4
4343

44-
- uses: ./.github/workflows/common.yml
44+
- name: Retrieving OpenSSL from cache
45+
uses: actions/cache/restore@v4
46+
id: openssl-cache
4547
with:
46-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
47-
openssl_ref: ${{ matrix.openssl_ref }}
48+
path: |
49+
openssl-source
50+
openssl-install
51+
52+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
53+
fail-on-cache-miss: true
54+
55+
- name: Retrieving wolfSSL/wolfProvider from cache
56+
uses: actions/cache/restore@v4
57+
id: wolfprov-cache
58+
with:
59+
path: |
60+
wolfssl-source
61+
wolfssl-install
62+
wolfprov-install
63+
provider.conf
64+
65+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
66+
fail-on-cache-miss: true
4867

4968
- name: Install dependencies
5069
run: |

.github/workflows/grpc.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,29 @@ jobs:
4545
- name: Checkout wolfProvider
4646
uses: actions/checkout@v4
4747

48-
- uses: ./.github/workflows/common.yml
48+
- name: Retrieving OpenSSL from cache
49+
uses: actions/cache/restore@v4
50+
id: openssl-cache
4951
with:
50-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
51-
openssl_ref: ${{ matrix.openssl_ref }}
52+
path: |
53+
openssl-source
54+
openssl-install
55+
56+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
57+
fail-on-cache-miss: true
58+
59+
- name: Retrieving wolfSSL/wolfProvider from cache
60+
uses: actions/cache/restore@v4
61+
id: wolfprov-cache
62+
with:
63+
path: |
64+
wolfssl-source
65+
wolfssl-install
66+
wolfprov-install
67+
provider.conf
68+
69+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
70+
fail-on-cache-miss: true
5271

5372
- name: Confirm IPv4 and IPv6 support
5473
run: |

.github/workflows/ipmitool.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,29 @@ jobs:
3838
- name: Checkout wolfProvider
3939
uses: actions/checkout@v4
4040

41-
- uses: ./.github/workflows/common.yml
41+
- name: Retrieving OpenSSL from cache
42+
uses: actions/cache/restore@v4
43+
id: openssl-cache
4244
with:
43-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
44-
openssl_ref: ${{ matrix.openssl_ref }}
45+
path: |
46+
openssl-source
47+
openssl-install
48+
49+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
50+
fail-on-cache-miss: true
51+
52+
- name: Retrieving wolfSSL/wolfProvider from cache
53+
uses: actions/cache/restore@v4
54+
id: wolfprov-cache
55+
with:
56+
path: |
57+
wolfssl-source
58+
wolfssl-install
59+
wolfprov-install
60+
provider.conf
61+
62+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
63+
fail-on-cache-miss: true
4564

4665
- name: Install dependencies
4766
run: |

.github/workflows/net-snmp.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,29 @@ jobs:
3939
- name: Checkout wolfProvider
4040
uses: actions/checkout@v4
4141

42-
- uses: ./.github/workflows/common.yml
42+
- name: Retrieving OpenSSL from cache
43+
uses: actions/cache/restore@v4
44+
id: openssl-cache
4345
with:
44-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
45-
openssl_ref: ${{ matrix.openssl_ref }}
46+
path: |
47+
openssl-source
48+
openssl-install
49+
50+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
51+
fail-on-cache-miss: true
52+
53+
- name: Retrieving wolfSSL/wolfProvider from cache
54+
uses: actions/cache/restore@v4
55+
id: wolfprov-cache
56+
with:
57+
path: |
58+
wolfssl-source
59+
wolfssl-install
60+
wolfprov-install
61+
provider.conf
62+
63+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
64+
fail-on-cache-miss: true
4665

4766
- name: Install dependencies
4867
run: |

.github/workflows/nginx.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,29 @@ jobs:
4141
- name: Checkout wolfProvider
4242
uses: actions/checkout@v4
4343

44-
- uses: ./.github/workflows/common.yml
44+
- name: Retrieving OpenSSL from cache
45+
uses: actions/cache/restore@v4
46+
id: openssl-cache
4547
with:
46-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
47-
openssl_ref: ${{ matrix.openssl_ref }}
48+
path: |
49+
openssl-source
50+
openssl-install
51+
52+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
53+
fail-on-cache-miss: true
54+
55+
- name: Retrieving wolfSSL/wolfProvider from cache
56+
uses: actions/cache/restore@v4
57+
id: wolfprov-cache
58+
with:
59+
path: |
60+
wolfssl-source
61+
wolfssl-install
62+
wolfprov-install
63+
provider.conf
64+
65+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
66+
fail-on-cache-miss: true
4867

4968
- name: Install dependencies
5069
run: |

.github/workflows/openldap.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,29 @@ jobs:
3838
- name: Checkout wolfProvider
3939
uses: actions/checkout@v4
4040

41-
- uses: ./.github/workflows/common.yml
41+
- name: Retrieving OpenSSL from cache
42+
uses: actions/cache/restore@v4
43+
id: openssl-cache
4244
with:
43-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
44-
openssl_ref: ${{ matrix.openssl_ref }}
45+
path: |
46+
openssl-source
47+
openssl-install
48+
49+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
50+
fail-on-cache-miss: true
51+
52+
- name: Retrieving wolfSSL/wolfProvider from cache
53+
uses: actions/cache/restore@v4
54+
id: wolfprov-cache
55+
with:
56+
path: |
57+
wolfssl-source
58+
wolfssl-install
59+
wolfprov-install
60+
provider.conf
61+
62+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
63+
fail-on-cache-miss: true
4564

4665
- name: Install dependencies
4766
run: |

.github/workflows/openssh.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,29 @@ jobs:
4141
- name: Checkout wolfProvider
4242
uses: actions/checkout@v4
4343

44-
- uses: ./.github/workflows/common.yml
44+
- name: Retrieving OpenSSL from cache
45+
uses: actions/cache/restore@v4
46+
id: openssl-cache
4547
with:
46-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
47-
openssl_ref: ${{ matrix.openssl_ref }}
48+
path: |
49+
openssl-source
50+
openssl-install
51+
52+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
53+
fail-on-cache-miss: true
54+
55+
- name: Retrieving wolfSSL/wolfProvider from cache
56+
uses: actions/cache/restore@v4
57+
id: wolfprov-cache
58+
with:
59+
path: |
60+
wolfssl-source
61+
wolfssl-install
62+
wolfprov-install
63+
provider.conf
64+
65+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
66+
fail-on-cache-miss: true
4867

4968
- name: Checkout OSP
5069
uses: actions/checkout@v4

.github/workflows/openvpn.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,29 @@ jobs:
4141
- name: Checkout wolfProvider
4242
uses: actions/checkout@v4
4343

44-
- uses: ./.github/workflows/common.yml
44+
- name: Retrieving OpenSSL from cache
45+
uses: actions/cache/restore@v4
46+
id: openssl-cache
4547
with:
46-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
47-
openssl_ref: ${{ matrix.openssl_ref }}
48+
path: |
49+
openssl-source
50+
openssl-install
51+
52+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
53+
fail-on-cache-miss: true
54+
55+
- name: Retrieving wolfSSL/wolfProvider from cache
56+
uses: actions/cache/restore@v4
57+
id: wolfprov-cache
58+
with:
59+
path: |
60+
wolfssl-source
61+
wolfssl-install
62+
wolfprov-install
63+
provider.conf
64+
65+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
66+
fail-on-cache-miss: true
4867

4968
- name: Install test dependencies
5069
run: |

.github/workflows/socat.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,29 @@ jobs:
3636
- name: Checkout wolfProvider
3737
uses: actions/checkout@v4
3838

39-
- uses: ./.github/workflows/common.yml
39+
- name: Retrieving OpenSSL from cache
40+
uses: actions/cache/restore@v4
41+
id: openssl-cache
4042
with:
41-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
42-
openssl_ref: ${{ matrix.openssl_ref }}
43+
path: |
44+
openssl-source
45+
openssl-install
46+
47+
key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
48+
fail-on-cache-miss: true
49+
50+
- name: Retrieving wolfSSL/wolfProvider from cache
51+
uses: actions/cache/restore@v4
52+
id: wolfprov-cache
53+
with:
54+
path: |
55+
wolfssl-source
56+
wolfssl-install
57+
wolfprov-install
58+
provider.conf
59+
60+
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
61+
fail-on-cache-miss: true
4362

4463
- name: Install dependencies
4564
run: |

0 commit comments

Comments
 (0)