From a2fe7b21506a686a1009c8b86fc0bdf4b2e5e195 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Mon, 20 Nov 2023 06:58:13 +0000 Subject: [PATCH] Turned off cache fro doc CI to check if it will be build correctly without cached state. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/docs.yml | 29 +---------------------------- src/ci.lisp | 2 +- 3 files changed, 5 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bce531..c3a7b58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,8 +61,8 @@ "if": "steps.cache.outputs.cache-hit != 'true'" }, { - "name": "Change dist to Ultralisp", - "run": "echo 'dist ultralisp http://dist.ultralisp.org' > qlfile", + "name": "Change dist to Ultralisp if qlfile does not exist", + "run": "if [[ ! -e qlfile ]]; then echo 'dist ultralisp http://dist.ultralisp.org' > qlfile; fi", "shell": "bash" }, { @@ -72,7 +72,7 @@ }, { "name": "Install SBLint wrapper", - "run": "qlot exec ros install 40ants-linter", + "run": "qlot exec ros install 40ants-asdf-system 40ants-linter", "shell": "bash" }, { diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 83f4fdb..261c3c8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,39 +26,12 @@ "name": "Checkout Code", "uses": "actions/checkout@v3" }, - { - "name": "Grant All Perms to Make Cache Restoring Possible", - "run": "sudo mkdir -p /usr/local/etc/roswell\n sudo chown \"${USER}\" /usr/local/etc/roswell\n # Here the ros binary will be restored:\n sudo chown \"${USER}\" /usr/local/bin", - "shell": "bash" - }, - { - "name": "Get Current Month", - "id": "current-month", - "run": "echo \"value=$(date -u \"+%Y-%m\")\" >> $GITHUB_OUTPUT", - "shell": "bash" - }, - { - "name": "Cache Roswell Setup", - "id": "cache", - "uses": "actions/cache@v3", - "with": { - "path": "qlfile\nqlfile.lock\n~/.cache/common-lisp/\n~/.roswell\n/usr/local/etc/roswell\n/usr/local/bin/ros\n/usr/local/Cellar/roswell\n.qlot", - "key": "a-${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-ubuntu-latest-quicklisp-sbcl-bin-${{ hashFiles('qlfile.lock', '*.asd') }}" - } - }, - { - "name": "Restore Path To Cached Files", - "run": "echo $HOME/.roswell/bin >> $GITHUB_PATH\n echo .qlot/bin >> $GITHUB_PATH", - "shell": "bash", - "if": "steps.cache.outputs.cache-hit == 'true'" - }, { "name": "Setup Common Lisp Environment", "uses": "40ants/setup-lisp@v2", "with": { "asdf-system": "log4cl-extras/doc" - }, - "if": "steps.cache.outputs.cache-hit != 'true'" + } }, { "name": "Build Docs", diff --git a/src/ci.lisp b/src/ci.lisp index 6ee4795..ee0a1d5 100644 --- a/src/ci.lisp +++ b/src/ci.lisp @@ -32,5 +32,5 @@ :on-push-to "master" :on-pull-request t :by-cron "0 10 * * 1" - :cache t + ;; :cache t :jobs ((build-docs :asdf-system "log4cl-extras/doc")))