Skip to content

Commit

Permalink
Fix the caching behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Jun 29, 2024
1 parent cca90d7 commit 7771178
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
44 changes: 33 additions & 11 deletions .github/workflows/rebuild-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,51 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup
- name: Restore cache
id: cache
uses: actions/cache@v3
with:
path: |
~/quicklisp
~/.wine
~/trial-deployment
key: ${{ runner.os }}
restore-keys: ${{ runner.os }}
- name: Install packages
run: |
git config --global user.name "CI"
git config --global user.email "[email protected]"
sudo apt-get -qq install sbcl curl fontforge imagemagick inkscape
sudo apt-get -qq install wine curl fontforge imagemagick inkscape --no-install-recommends
- name: Install env
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 https://gitea.tymoon.eu/Shirakumo/trial-deployment.git ~/trial-deployment
curl -o ~/quicklisp.lisp https://beta.quicklisp.org/quicklisp.lisp
sbcl --load ~/quicklisp.lisp \
~/trial-deployment/sbcl-lin \
--load ~/quicklisp.lisp \
--eval '(quicklisp-quickstart:install)' \
--eval '(ql-util:without-prompting (ql:add-to-init-file))' \
--eval '(ql:quickload :shasht)' \
--eval '(ql:quickload :clip)' \
--eval '(ql:quickload :pathname-utils)' \
--quit
- uses: actions/cache@v3
with:
path: |
~/quicklisp/
key: ${{ runner.os }}
restore-keys: ${{ runner.os }}
- uses: actions/checkout@v1
~/trial-deployment/sbcl-win \
--load ~/quicklisp.lisp \
--eval '(quicklisp-quickstart:install)' \
--eval '(ql-util:without-prompting (ql:add-to-init-file))' \
--eval '(ql:quickload :shasht)' \
--eval '(ql:quickload :clip)' \
--eval '(ql:quickload :pathname-utils)' \
--quit
- uses: actions/checkout@v2
- name: Rebuild
run: |
./compile.lisp
~/trial-deployment/sbcl-lin \
--noinform \
--disable-debugger \
--eval "(ql:quickload '(clip shasht pathname-utils) :silent T)" \
--load "compile.lisp" \
--eval '(promptfont-compiler::all)'
- name: GH Pages deploy
if: github.head_ref == null
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
path: |
~/quicklisp
~/.wine
~/trial-deproyment
~/trial-deployment
key: ${{ runner.os }}
restore-keys: ${{ runner.os }}
- name: Install packages
Expand Down

0 comments on commit 7771178

Please sign in to comment.