diff --git a/.github/workflows/address-sanitizer.yml b/.github/workflows/address-sanitizer.yml index a2b67a5..6680fab 100644 --- a/.github/workflows/address-sanitizer.yml +++ b/.github/workflows/address-sanitizer.yml @@ -22,9 +22,18 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache JUnit dependencies + uses: actions/cache@v4 + id: cache-junit + with: + path: junit + key: junit-jars-v1 + - name: Download junit-4.13.2.jar + if: steps.cache-junit.outputs.cache-hit != 'true' run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar - name: Download hamcrest-all-1.3.jar + if: steps.cache-junit.outputs.cache-hit != 'true' run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar - name: Build native wolfSSL with AddressSanitizer diff --git a/.github/workflows/infer.yml b/.github/workflows/infer.yml index a024717..0ea3870 100644 --- a/.github/workflows/infer.yml +++ b/.github/workflows/infer.yml @@ -32,10 +32,19 @@ jobs: - name: Test Infer get version run: infer --version - # Download Junit JARs + # Cache and Download Junit JARs + - name: Cache JUnit dependencies + uses: actions/cache@v4 + id: cache-junit + with: + path: junit + key: junit-jars-v1 + - name: Download junit-4.13.2.jar + if: steps.cache-junit.outputs.cache-hit != 'true' run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar - name: Download hamcrest-all-1.3.jar + if: steps.cache-junit.outputs.cache-hit != 'true' run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar # Build native wolfSSL diff --git a/.github/workflows/linux-common.yml b/.github/workflows/linux-common.yml index 05a9577..0506bd7 100644 --- a/.github/workflows/linux-common.yml +++ b/.github/workflows/linux-common.yml @@ -25,9 +25,18 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache JUnit dependencies + uses: actions/cache@v4 + id: cache-junit + with: + path: junit + key: junit-jars-v1 + - name: Download junit-4.13.2.jar + if: steps.cache-junit.outputs.cache-hit != 'true' run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar - name: Download hamcrest-all-1.3.jar + if: steps.cache-junit.outputs.cache-hit != 'true' run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar - name: Build native wolfSSL