workflows: cache docker build environment images

This commit is contained in:
xiphon 2020-09-24 14:46:35 +00:00
parent a32d39cc96
commit 5b5c0ac658

View file

@ -59,11 +59,17 @@ jobs:
run: build/release/bin/monero-wallet-gui --test-qml run: build/release/bin/monero-wallet-gui --test-qml
docker-linux-static: docker-linux-static:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- uses: satackey/action-docker-layer-caching@v0.0.8
continue-on-error: true
with:
key: docker-linux-static-{hash}
restore-keys: |
docker-linux-static-
- name: preprare build enviroment - name: preprare build enviroment
run: docker build --tag monero:build-env-linux --build-arg THREADS=3 --file Dockerfile.linux . run: docker build --tag monero:build-env-linux --build-arg THREADS=3 --file Dockerfile.linux .
- name: build - name: build
@ -75,6 +81,12 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
with: with:
submodules: recursive submodules: recursive
- uses: satackey/action-docker-layer-caching@v0.0.8
continue-on-error: true
with:
key: docker-windows-static-{hash}
restore-keys: |
docker-windows-static-
- name: preprare build enviroment - name: preprare build enviroment
run: docker build --tag monero:build-env-windows --build-arg THREADS=3 --file Dockerfile.windows . run: docker build --tag monero:build-env-windows --build-arg THREADS=3 --file Dockerfile.windows .
- name: build - name: build