ci: speed up run_test_case jobs with cache

This commit is contained in:
William Yang 2022-01-17 08:33:15 +01:00
parent bf376afb5a
commit 451324300b
1 changed files with 24 additions and 3 deletions

View File

@ -15,14 +15,35 @@ jobs:
run_proper_test: run_proper_test:
strategy: strategy:
matrix: matrix:
emqx_builder: otp:
- 5.0-3:24.1.5-3 - 24.1.5-3
os:
- ubuntu20.04
arch:
- amd64
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
container: "ghcr.io/emqx/emqx-builder/${{ matrix.emqx_builder }}-ubuntu20.04" container: "ghcr.io/emqx/emqx-builder/5.0-3:${{ matrix.otp }}-${{ matrix.os }}"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get deps git refs for cache
id: deps-refs
run: |
scripts/get-dep-refs.sh
make clean-all
- name: load rocksdb cache
uses: actions/cache@v2
with:
path: source/_build/default/lib/rocksdb/
key: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_ROCKSDB_REF }}
- name: load quicer cache
uses: actions/cache@v2
with:
path: source/_build/default/lib/quicer/
key: ${{ matrix.os }}-${{ matrix.otp }}-$${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_QUICER_REF }}
- name: proper - name: proper
run: make proper run: make proper