diff --git a/.github/workflows/code-checker.yaml b/.github/workflows/code-checker.yaml index 9dbe977f77..a9805bb4bd 100644 --- a/.github/workflows/code-checker.yaml +++ b/.github/workflows/code-checker.yaml @@ -52,7 +52,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Download Caches - uses: ./.github/actions/cache + uses: ./.github/actions/cache-restore with: os: 'ubuntu22.04' - name: Code Check @@ -60,6 +60,11 @@ jobs: OS_NAME: 'ubuntu22.04' run: | ./build/builder.sh /bin/bash -c "make check-proto-product && make verifiers" + - name: Save Caches + uses: ./.github/actions/cache-save + if: github.event_name != 'pull_request' + with: + os: 'ubuntu22.04' amazonlinux: if: ${{ false }} # skip for now @@ -80,13 +85,18 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Download Caches - uses: ./.github/actions/cache + uses: ./.github/actions/cache-restore with: os: 'amazonlinux2023' - name: Code Check run: | sed -i 's/ubuntu22.04/amazonlinux2023/g' .env ./build/builder.sh /bin/bash -c "make install" + - name: Save Caches + uses: ./.github/actions/cache-save + if: github.event_name != 'pull_request' + with: + os: 'amazonlinux2023' rockylinux: if: ${{ false }} # skip for now @@ -107,10 +117,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Download Caches - uses: ./.github/actions/cache + uses: ./.github/actions/cache-restore with: os: 'rockylinux8' - name: Code Check run: | sed -i 's/ubuntu22.04/rockylinux8/g' .env ./build/builder.sh /bin/bash -c "make install" + - name: Save Caches + uses: ./.github/actions/cache-save + if: github.event_name != 'pull_request' + with: + os: 'rockylinux8' diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index aa2ca2f0ac..9952a3d60a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -311,3 +311,4 @@ jobs: name: ubuntu-20.04-unittests fail_ci_if_error: true disable_safe_directory: true +