From cd95579834e6c71fc4930ac14ef703a5f0463b9b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 7 Nov 2020 09:12:54 -0800 Subject: [PATCH] Move less installation to actions --- .github/workflows/doc.yml | 1 + support/build-docs.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 8bf9dd85..c55e2ecb 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -12,6 +12,7 @@ jobs: - name: Create Build Environment run: | sudo apt install doxygen + sudo npm install -g less clean-css cmake -E make_directory ${{runner.workspace}}/build - name: Build diff --git a/support/build-docs.py b/support/build-docs.py index ea7a4063..7cb32894 100755 --- a/support/build-docs.py +++ b/support/build-docs.py @@ -22,8 +22,7 @@ def install_dependencies(): check_call('echo "deb https://deb.nodesource.com/node_0.10 precise main" ' + '| sudo tee /etc/apt/sources.list.d/nodesource.list', shell=True) check_call(['sudo', 'apt-get', 'update']) - check_call(['sudo', 'apt-get', 'install', 'python-virtualenv', 'nodejs']) - check_call(['sudo', 'npm', 'install', '-g', 'less@2.6.1', 'less-plugin-clean-css']) + check_call(['sudo', 'apt-get', 'install', 'python-virtualenv']) deb_file = 'doxygen_1.8.6-2_amd64.deb' urllib.urlretrieve('http://mirrors.kernel.org/ubuntu/pool/main/d/doxygen/' + deb_file, deb_file)