cicd: mount .conan2 directory to cache 3rd-party libs

This commit is contained in:
light7734 2024-10-14 21:23:09 +03:30
parent 416dc52b7a
commit 889c5c993f
Signed by: light7734
GPG Key ID: 37FDF7099B2AB7A7
1 changed files with 13 additions and 0 deletions

View File

@ -13,9 +13,15 @@ volumes:
- name: dockersock - name: dockersock
host: host:
path: /var/run/docker.sock path: /var/run/docker.sock
- name: py - name: py
temp: {} temp: {}
- name: conan
host:
path: $HOME/.conan2/
services: services:
- name: docker - name: docker
image: docker:dind image: docker:dind
@ -41,6 +47,7 @@ steps:
volumes: volumes:
- name: py - name: py
path: /opt/venv/ path: /opt/venv/
commands: commands:
- . /opt/venv/bin/activate - . /opt/venv/bin/activate
- uname -a - uname -a
@ -59,6 +66,9 @@ steps:
volumes: volumes:
- name: py - name: py
path: /opt/venv/ path: /opt/venv/
- name: conan
path: $HOME/.conan2
commands: commands:
- . /opt/venv/bin/activate - . /opt/venv/bin/activate
- rm -rvf ./build - rm -rvf ./build
@ -78,6 +88,9 @@ steps:
volumes: volumes:
- name: py - name: py
path: /opt/venv/ path: /opt/venv/
- name: conan
path: $HOME/.conan2
commands: commands:
- . /opt/venv/bin/activate - . /opt/venv/bin/activate
- rm -rvf ./build - rm -rvf ./build