mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-06 02:49:34 +00:00
actions: skip dry run on cache hit
This commit is contained in:
parent
6b599fe09d
commit
18481928ba
1 changed files with 12 additions and 0 deletions
12
.github/workflows/guix.yml
vendored
12
.github/workflows/guix.yml
vendored
|
@ -8,6 +8,7 @@ env:
|
||||||
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
|
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
|
||||||
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
|
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
|
||||||
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
|
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cache-sources:
|
cache-sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -40,6 +41,7 @@ jobs:
|
||||||
guix_db.sqlite
|
guix_db.sqlite
|
||||||
key: guix-${{ hashFiles('contrib/guix/manifest.scm') }}
|
key: guix-${{ hashFiles('contrib/guix/manifest.scm') }}
|
||||||
- name: move guix store
|
- name: move guix store
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
if [[ -e "guix_db.sqlite" ]]; then
|
if [[ -e "guix_db.sqlite" ]]; then
|
||||||
sudo mkdir -p /var/guix/db
|
sudo mkdir -p /var/guix/db
|
||||||
|
@ -50,13 +52,23 @@ jobs:
|
||||||
sudo chown 0644 /var/guix/db/db.sqlite
|
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
|
||||||
fi
|
fi
|
||||||
|
- name: depends sources cache
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions/cache/restore@v3
|
||||||
|
with:
|
||||||
|
path: contrib/depends/sources
|
||||||
|
key: sources-${{ hashFiles('contrib/depends/packages/*') }}
|
||||||
- name: set apt conf
|
- name: set apt conf
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: ${{env.APT_SET_CONF}}
|
run: ${{env.APT_SET_CONF}}
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: sudo apt update; sudo apt -y install guix git ca-certificates
|
run: sudo apt update; sudo apt -y install guix git ca-certificates
|
||||||
- name: dry run
|
- name: dry run
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: DRY_RUN=1 SUBSTITUTE_URLS='http://ci.guix.gnu.org' JOBS=2 ./contrib/guix/guix-build
|
run: DRY_RUN=1 SUBSTITUTE_URLS='http://ci.guix.gnu.org' JOBS=2 ./contrib/guix/guix-build
|
||||||
- name: prepare guix store for caching
|
- name: prepare guix store for caching
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl stop guix-daemon
|
sudo systemctl stop guix-daemon
|
||||||
sudo mv /gnu gnu
|
sudo mv /gnu gnu
|
||||||
|
|
Loading…
Reference in a new issue