From a06df67327ef2bc4333bb5815cd91ecf73e3ae12 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Fri, 30 Oct 2020 14:49:24 +0100 Subject: [PATCH] Factorize installation with a script --- .github/install.sh | 15 +++++++++ .github/workflows/demo.yml | 64 +++----------------------------------- 2 files changed, 19 insertions(+), 60 deletions(-) create mode 100755 .github/install.sh diff --git a/.github/install.sh b/.github/install.sh new file mode 100755 index 00000000000..05f3b5a039a --- /dev/null +++ b/.github/install.sh @@ -0,0 +1,15 @@ +#!/bin/bash +sudo add-apt-repository ppa:mikhailnov/pulseeffects -y +sudo apt-get update +sudo apt-get install -y libmpfr-dev \ + libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \ + libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev +git clone --branch v3.18.4 --depth 1 git://github.com/Kitware/CMake.git +cd ./CMake +mkdir build +cd build +cmake .. +make -j2 +sudo make install +cd ../.. +rm -rf ./CMake diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 8b4b31f270b..63435b6a5fb 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -8,21 +8,7 @@ jobs: steps: - uses: actions/checkout@v2.0.0 - name: install dependencies - run: | - sudo add-apt-repository ppa:mikhailnov/pulseeffects -y - sudo apt-get update - sudo apt-get install -y libmpfr-dev \ - libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \ - libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev - git clone --branch v3.18.4 --depth 1 git://github.com/Kitware/CMake.git - cd ./CMake - mkdir build - cd build - cmake .. - make -j2 - sudo make install - cd ../.. - rm -rf ./CMake + run: .github/install.sh - name: run1 run: | set -ex @@ -40,21 +26,7 @@ jobs: steps: - uses: actions/checkout@v2.0.0 - name: install dependencies - run: | - sudo add-apt-repository ppa:mikhailnov/pulseeffects -y - sudo apt-get update - sudo apt-get install -y libmpfr-dev \ - libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \ - libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev - git clone --branch v3.18.4 --depth 1 git://github.com/Kitware/CMake.git - cd ./CMake - mkdir build - cd build - cmake .. - make -j2 - sudo make install - cd ../.. - rm -rf ./CMake + run: .github/install.sh - name: run2 run: | set -ex @@ -72,21 +44,7 @@ jobs: steps: - uses: actions/checkout@v2.0.0 - name: install dependencies - run: | - sudo add-apt-repository ppa:mikhailnov/pulseeffects -y - sudo apt-get update - sudo apt-get install -y libmpfr-dev \ - libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \ - libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev - git clone --branch v3.18.4 --depth 1 git://github.com/Kitware/CMake.git - cd ./CMake - mkdir build - cd build - cmake .. - make -j2 - sudo make install - cd ../.. - rm -rf ./CMake + run: .github/install.sh - name: run3 run: | set -ex @@ -104,21 +62,7 @@ jobs: steps: - uses: actions/checkout@v2.0.0 - name: install dependencies - run: | - sudo add-apt-repository ppa:mikhailnov/pulseeffects -y - sudo apt-get update - sudo apt-get install -y libmpfr-dev \ - libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \ - libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev - git clone --branch v3.18.4 --depth 1 git://github.com/Kitware/CMake.git - cd ./CMake - mkdir build - cd build - cmake .. - make -j2 - sudo make install - cd ../.. - rm -rf ./CMake + run: .github/install.sh - name: run4 run: | set -ex