-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (76 loc) · 2.69 KB
/
Copy pathbuild.yml
File metadata and controls
92 lines (76 loc) · 2.69 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: C++ Cross-Platform Build
on: push
defaults:
run:
shell: bash
env:
CONAN_REVISIONS_ENABLED: 1
CONAN_SYSREQUIRES_MODE: verify
CONAN_COLOR_DISPLAY: 1
CONAN_NON_INTERACTIVE: 1
jobs:
clang-format-check:
name: clang-format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run clang-format
uses: jidicula/clang-format-action@v4.4.0
with:
clang-format-version: '13'
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, windows-2019 ]
mode: [ "Debug", "Release" ]
include:
- os: ubuntu-20.04
cxx-override: CC=gcc-10 CXX=g++-10
- os: windows-2019
pdb-path: ./build/*.pdb
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Conan Cache
uses: actions/cache@v2
with:
path: ~/.conan
key: ${{ runner.os }}-conan-${{ matrix.mode }}-${{ hashFiles('**/conanfile.txt') }}
# Fetched using conan to see what apt dependencies were needed, most should already be installed, but we never know...
- name: apt dependencies
run: | # Add `libtbb-dev` if using std::execution
sudo apt update
sudo apt install -y \
libgl-dev \
libfontenc-dev libx11-xcb-dev libxaw7-dev libxcb-dri3-dev libxcb-icccm4-dev libxcb-image0-dev \
libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-sync-dev \
libxcb-util-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcomposite-dev libxcursor-dev \
libxdamage-dev libxfixes-dev libxi-dev libxinerama-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev \
libxres-dev libxss-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev
if: startsWith(matrix.os, 'ubuntu')
- name: Install Pip Dependencies
run: pip install -r requirements.txt
- name: Configure
run: |
mkdir build
cd build
${{ matrix.cxx-override }} \
cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.mode }} \
-DVULK_WARNINGS_AS_ERRORS=ON \
-DVULK_ENABLE_PCH=OFF \
..
- name: Build
working-directory: build
run: cmake --build . --config ${{ matrix.mode }}
# - name: Upload Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: ${{ runner.os }}-${{ matrix.mode }}.zip
# path: | # TODO: add lib and exe build results here
# ${{ matrix.pdb-path }}
# if-no-files-found: warn
# retention-days: 30