From: Yongjoo Ahn Date: Tue, 31 Oct 2023 05:44:32 +0000 (+0900) Subject: [action] Let gbs action cache 'GBS-ROOT/local/cache' X-Git-Tag: accepted/tizen/unified/20231110.172147~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10157e511c826d8fcfa9f571674e6d89173d99c7;p=platform%2Fupstream%2Fnnstreamer.git [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 --- 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