From 10157e511c826d8fcfa9f571674e6d89173d99c7 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Tue, 31 Oct 2023 14:44:32 +0900 Subject: [PATCH] [action] Let gbs action cache 'GBS-ROOT/local/cache' - Let github action cache the directory. Speed gbs build up by removing package downloads. - The cache key is the date. The very first run each day will make new cache. Signed-off-by: Yongjoo Ahn --- .github/workflows/gbs_x64.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/gbs_x64.yml b/.github/workflows/gbs_x64.yml index e4ca30e..f25c1c8 100644 --- a/.github/workflows/gbs_x64.yml +++ b/.github/workflows/gbs_x64.yml @@ -20,6 +20,16 @@ jobs: run: sudo apt-get update && sudo apt-get install -y gbs - name: configure GBS run: cp .github/workflows/tizen.gbs.conf ~/.gbs.conf + - name: make cache key + id: make-key + run: echo "cache_key=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + shell: bash + - name: cache gbs cache + id: cache-gbs-root + uses: actions/cache@v3 + with: + path: ~/GBS-ROOT/local/cache + key: ${{ steps.make-key.outputs.cache_key }} - name: run GBS run: gbs build - name: get nntrainer -- 2.7.4