-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.02 KB
/
install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Install
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: Test installation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set system to non-interactive mode
run: export DEBIAN_FRONTEND=noninteractive
- name: install dependencies
run: |
sudo apt-get install -y --force-yes -qq build-essential
- name: build and install
run: |
echo "Build"
mkdir -p ${HOME}/install
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/install -B build .
cmake --build build
cmake --install build
echo "Now try find package from a separate directory"
rm -rf build
cmake -DCMAKE_PREFIX_PATH=${HOME}/install -B build installtest
echo "Now try and build with includes..."
cmake --build build
echo "Done"