mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 09:17:36 +00:00
actions: cache guix cache
This commit is contained in:
parent
b2d2892219
commit
a98f545c6c
1 changed files with 9 additions and 4 deletions
13
.github/workflows/guix.yml
vendored
13
.github/workflows/guix.yml
vendored
|
@ -40,18 +40,20 @@ jobs:
|
|||
path: |
|
||||
gnu/store
|
||||
guix_db.sqlite
|
||||
guix
|
||||
key: guix-${{ hashFiles('contrib/guix/manifest.scm') }}
|
||||
- name: move guix store
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
if [[ -e "guix_db.sqlite" ]]; then
|
||||
sudo mkdir -p /var/guix/db
|
||||
sudo mkdir -p /var/guix/db /root/.cache/
|
||||
sudo mv gnu /gnu
|
||||
sudo mv guix /root/.cache
|
||||
sudo cp guix_db.sqlite /var/guix/db/db.sqlite
|
||||
|
||||
sudo chmod 1775 /gnu/store
|
||||
sudo chown 0644 /var/guix/db/db.sqlite
|
||||
sudo chown -R root:root /gnu/store /var/guix/db/db.sqlite
|
||||
sudo chown -R root:root /gnu/store /var/guix/db/db.sqlite /root/.cache/guix
|
||||
fi
|
||||
- name: depends sources cache
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
|
@ -74,6 +76,7 @@ jobs:
|
|||
sudo systemctl stop guix-daemon
|
||||
sudo mv /gnu gnu
|
||||
sudo mv /var/guix/db/db.sqlite guix_db.sqlite
|
||||
sudo mv /root/.cache/guix guix
|
||||
|
||||
build-guix:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -114,17 +117,19 @@ jobs:
|
|||
path: |
|
||||
gnu/store
|
||||
guix_db.sqlite
|
||||
guix
|
||||
key: guix-${{ hashFiles('contrib/guix/manifest.scm') }}
|
||||
- name: move guix store
|
||||
run: |
|
||||
if [[ -e "guix_db.sqlite" ]]; then
|
||||
sudo mkdir -p /var/guix/db
|
||||
sudo mkdir -p /var/guix/db /root/.cache/
|
||||
sudo mv gnu /gnu
|
||||
sudo mv guix /root/.cache
|
||||
sudo cp guix_db.sqlite /var/guix/db/db.sqlite
|
||||
|
||||
sudo chmod 1775 /gnu/store
|
||||
sudo chown 0644 /var/guix/db/db.sqlite
|
||||
sudo chown -R root:root /gnu/store /var/guix/db/db.sqlite
|
||||
sudo chown -R root:root /gnu/store /var/guix/db/db.sqlite /root/.cache/guix
|
||||
fi
|
||||
- name: depends cache
|
||||
uses: actions/cache@v3
|
||||
|
|
Loading…
Reference in a new issue