- 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 <yongjoo1.ahn@samsung.com>
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