Skip to content

NNStreamer + NNTrainer gbs build daily test. #9

NNStreamer + NNTrainer gbs build daily test.

NNStreamer + NNTrainer gbs build daily test. #9

name: Update GBS cache once a day
on:
schedule:
- cron: '3 0 * * 1-5' # every weekday at 09:03 (KST)
# Allow manually triggering the workflow
workflow_dispatch:
jobs:
cache_gbs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v1
- name: prepare deb sources for GBS
run: echo "deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/tizen.list
- name: install GBS
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 --skip-srcrpm --define "_skip_debug_rpm 1"