From 851ec6a0b3c4ad0fe7980eae335946560e7588ce Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Wed, 2 Aug 2023 09:17:50 -0300 Subject: [PATCH] Generate artifacts cache for bbb-html5 --- .github/workflows/automated-tests.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 0ee5e84517..933a1a8cd1 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -85,10 +85,22 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - - run: ./build/get_external_dependencies.sh - - run: ./build/setup.sh bbb-html5-nodejs - - run: ./build/setup.sh bbb-html5 - - run: tar cvf artifacts.tar artifacts/ + - run: echo "CACHE_KEY=$(git log -1 --format=%H -- bigbluebutton-html5)" >> $GITHUB_ENV + - name: Cache bigbluebutton-html5 + id: cache-bigbluebutton-html5 + uses: actions/cache@v3 + env: + cache-name: test + with: + path: artifacts.tar + key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.CACHE_KEY }} + - if: ${{ steps.cache-bigbluebutton-html5.outputs.cache-hit != 'true' }} + name: Generate html5 artifacts + run: | + ./build/get_external_dependencies.sh + ./build/setup.sh bbb-html5-nodejs + ./build/setup.sh bbb-html5 + tar cvf artifacts.tar artifacts/ - name: Archive packages uses: actions/upload-artifact@v3 with: