Factorize installation with a script

This commit is contained in:
Maxime Gimeno 2020-10-30 14:49:24 +01:00
parent 6b1fab13b9
commit a06df67327
2 changed files with 19 additions and 60 deletions

15
.github/install.sh vendored Executable file
View File

@ -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

View File

@ -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