This commit is contained in:
Julien Maffre 2021-07-12 22:13:29 +01:00 коммит произвёл GitHub
Родитель dd21a3f4ec
Коммит 896922a44a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 58 добавлений и 11 удалений

Просмотреть файл

@ -7,7 +7,7 @@ trigger:
jobs:
- job: build_and_publish_docs
container: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
container: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
pool:
vmImage: ubuntu-18.04

Просмотреть файл

@ -27,11 +27,11 @@ schedules:
resources:
containers:
- container: nosgx
image: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
image: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
- container: sgx
image: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
image: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
variables:

Просмотреть файл

@ -23,11 +23,11 @@ schedules:
resources:
containers:
- container: nosgx
image: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
image: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache
- container: sgx
image: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
image: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache
jobs:

2
.github/workflows/ci-checks.yml поставляемый
Просмотреть файл

@ -9,7 +9,7 @@ on:
jobs:
checks:
runs-on: ubuntu-18.04
container: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
container: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
steps:
- name: Checkout repository

Просмотреть файл

@ -16,7 +16,7 @@ pr:
resources:
containers:
- container: sgx
image: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
image: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache
jobs:

Просмотреть файл

@ -21,7 +21,7 @@ schedules:
resources:
containers:
- container: sgx
image: ccfciteam/ccf-ci:oe0.17.0-mbedtls-2.16.10
image: ccfciteam/ccf-ci:oe0.17.0-doxygen-1.9.1
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache
jobs:

Просмотреть файл

@ -1,5 +1,5 @@
breathe
sphinx<4.1.0 # https://github.com/sphinx-doc/sphinx/issues/9433
sphinx
bottle
sphinx-autobuild
sphinxcontrib-mermaid

Просмотреть файл

@ -51,7 +51,7 @@
- name: Build mbedtls
shell: |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..
make -j4
make
args:
chdir: "{{ workspace }}/mbedtls-{{ mbedtls_dir }}/build"
@ -60,3 +60,45 @@
args:
chdir: "{{ workspace }}/mbedtls-{{ mbedtls_dir }}/build"
become: true
- name: Remove doxygen debian package
apt:
name: doxygen
state: absent
become: yes
- name: Download doxygen
get_url:
url: https://github.com/doxygen/doxygen/archive/Release_{{ doxygen_src }}
dest: "{{ workspace }}/{{ doxygen_src }}"
become: true
- name: Remove existing doxygen checkout
file:
path: "{{ workspace }}/doxygen-{{ doxygen_dir }}"
state: absent
- name: Expand doxygen
unarchive:
src: "{{ workspace }}/{{ doxygen_src }}"
dest: "{{ workspace }}"
copy: no
creates: "{{ workspace }}/doxygen-{{ doxygen_dir }}/CMakeLists.txt"
- name: Make doxygen build dir
file:
path: "{{ workspace }}/doxygen-{{ doxygen_dir }}/build"
state: directory
- name: Build doxygen
shell: |
CC=$(which clang-8) CXX=$(which clang++-8) cmake -DCMAKE_BUILD_TYPE=Release ..
make
args:
chdir: "{{ workspace }}/doxygen-{{ doxygen_dir }}/build"
- name: Install doxygen
command: make install
args:
chdir: "{{ workspace }}/doxygen-{{ doxygen_dir }}/build"
become: true

Просмотреть файл

@ -14,7 +14,6 @@ debs:
- expect
- git
- ccache
- doxygen
- kmod
- cmake
- libssl-dev
@ -23,7 +22,13 @@ debs:
- curl
- shellcheck
- iptables
- flex # required to build doxygen
- bison # required to build doxygen
mbedtls_ver: "2.16.10"
mbedtls_dir: "mbedtls-{{ mbedtls_ver }}"
mbedtls_src: "{{ mbedtls_dir }}.tar.gz"
doxygen_ver: "1_9_1"
doxygen_dir: "Release_{{ doxygen_ver }}"
doxygen_src: "{{ doxygen_ver }}.tar.gz"