-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (54 loc) · 1.94 KB
/
c-cpp.yml
File metadata and controls
58 lines (54 loc) · 1.94 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: C++ Ci with Qt
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# - name: Install Qt
# uses: jurplel/install-qt-action@v2
- name: boost
run: sudo apt-get update && sudo apt-get install -yq libboost1.71-all-dev
- name: Cache boost
uses: actions/cache@v2
id: cache-boost
with:
path: "~/boost"
key: libboost1.71-all-dev
- name: Install boost
env:
CACHE_HIT: ${{steps.cache-boost.outputs.cache-hit}}
run: |
if [[ "$CACHE_HIT" == 'true' ]]; then
sudo cp --force --recursive ~/boost/* /
else
sudo apt-get update && sudo apt-get install -yq libboost1.71-all-dev
mkdir -p ~/boost
for dep in libboost1.71-all-dev; do
dpkg -L $dep | while IFS= read -r f; do if test -f $f; then echo $f; fi; done | xargs cp --parents --target-directory ~/boost/
done
fi
#- name: Install boost
# uses: MarkusJx/install-boost@v2.0.0
# id: install-boost
#with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/actions/boost-versions/blob/main/versions-manifest.json
# boost_version: 1.73.0
# OPTIONAL: Specify a platform version
# platform_version: 18.04
- name:
run: sudo apt-get update && sudo apt-get install qt5-qmake qt5-default libopenexr-dev libpng-dev -y && sudo /sbin/ldconfig -v
- name: fast-float
run: git clone https://github.com/fastfloat/fast_float.git
- name: Build with Make
run: make -j test
- name: Install Python-dependencies
run: python3 -m pip install --upgrade pip; pip3 install numpy imageio pyexr OpenEXR
- name: Run OpenGl-Tests
run: export LD_LIBRARY_PATH=$(pwd)/libgl-xlib; cd test; xvfb-run make all