From 183b4698dd074a91ad5227c0e8ab4ab3f076c81b Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 12 May 2023 00:39:50 +0000 Subject: [PATCH] Build debian cache once a week --- .github/workflows/debian.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/debian.yml diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml new file mode 100644 index 0000000..e289732 --- /dev/null +++ b/.github/workflows/debian.yml @@ -0,0 +1,30 @@ +name: Debian + +on: + schedule: + - cron: '45 0 * * 5' + +jobs: + debian-cache: + name: Build Cache + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Build + run: go build + + - name: Cache + run: ./out-of-tree --log-level=trace debian cache --path=/home/runner/debian.cache + + - name: Archive cache + uses: actions/upload-artifact@v3 + with: + name: debian-cache + path: /home/runner/debian.cache + + - name: Archive logs + uses: actions/upload-artifact@v3 + with: + name: debian-cache-logs + path: /home/runner/.out-of-tree/logs