From 9bddec06b8e0bb4579951784c4d18f88d74b53a3 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Thu, 17 Oct 2024 16:35:46 +0300 Subject: [PATCH] add cache --- .github/workflows/Build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 8da5bee..c06d07d 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -39,22 +39,27 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build container - run: docker build -t $imageName . - + - uses: actions/cache@v4 + with: + path: . + key: ${{ matrix.test.type }} + - name: Prepare working-directory: ./testdemos_files run: rsync -a deps/${{ matrix.test.type }}/* . + - name: Build container + run: docker build -t $imageName . + - name: Run test env: demo: ${{ matrix.test.file }} desc: ${{ matrix.test.desc }} run: | docker run \ - -t $imageName \ --env demo \ --env desc \ + -t $imageName \ ./runTest.sh build: