cicd: move conan installation to docker image
This commit is contained in:
parent
8d9d829758
commit
a1d62fcdf3
17
.drone.yml
17
.drone.yml
|
@ -2,6 +2,9 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: linux_amd64
|
name: linux_amd64
|
||||||
|
|
||||||
|
environment:
|
||||||
|
CONAN_REVISIONS_ENABLED: "1"
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
@ -39,18 +42,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- docker images
|
- docker images
|
||||||
|
|
||||||
- name: setup_conan
|
|
||||||
image: ubuntu_amd64:latest
|
|
||||||
volumes:
|
|
||||||
- name: py
|
|
||||||
path: /opt/venv/
|
|
||||||
pull: if-not-exists
|
|
||||||
environment:
|
|
||||||
CONAN_REVISIONS_ENABLED: "1"
|
|
||||||
commands:
|
|
||||||
- . /opt/venv/bin/activate
|
|
||||||
- pip install conan==2.5.0
|
|
||||||
|
|
||||||
- name: echo_info
|
- name: echo_info
|
||||||
image: ubuntu_amd64:latest
|
image: ubuntu_amd64:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
|
@ -75,6 +66,7 @@ steps:
|
||||||
- name: py
|
- name: py
|
||||||
path: /opt/venv/
|
path: /opt/venv/
|
||||||
commands:
|
commands:
|
||||||
|
- . /opt/venv/bin/activate
|
||||||
- rm -rvf ./build
|
- rm -rvf ./build
|
||||||
- export CC=$(which gcc)
|
- export CC=$(which gcc)
|
||||||
- export CXX=$(which g++)
|
- export CXX=$(which g++)
|
||||||
|
@ -93,6 +85,7 @@ steps:
|
||||||
- name: py
|
- name: py
|
||||||
path: /opt/venv/
|
path: /opt/venv/
|
||||||
commands:
|
commands:
|
||||||
|
- . /opt/venv/bin/activate
|
||||||
- rm -rvf ./build
|
- rm -rvf ./build
|
||||||
- export CC=$(which clang)
|
- export CC=$(which clang)
|
||||||
- export CXX=$(which clang++)
|
- export CXX=$(which clang++)
|
||||||
|
|
|
@ -13,3 +13,5 @@ RUN apt-get install -y \
|
||||||
python3.12-venv
|
python3.12-venv
|
||||||
|
|
||||||
RUN python3 -m venv /opt/venv
|
RUN python3 -m venv /opt/venv
|
||||||
|
RUN . /opt/venv/bin/activate
|
||||||
|
RUN pip install conan==2.5.0
|
||||||
|
|
Loading…
Reference in New Issue