-
Notifications
You must be signed in to change notification settings - Fork 49
82 lines (67 loc) · 2.29 KB
/
build-linux.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
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
name: Linux build
on: [push, pull_request]
jobs:
precheks:
name: Linux -> Pre-checks
runs-on: ubuntu-20.04
steps:
- name: Clone DiligentCore
uses: actions/checkout@v4
with:
repository: DiligentGraphics/DiligentCore
path: DiligentCore
- name: Clone DiligentFX
uses: actions/checkout@v4
with:
path: DiligentFX
- name: Format validation
shell: bash
working-directory: ${{github.workspace}}/DiligentFX/BuildTools/FormatValidation
run: ./validate_format_linux.sh
- name: Codespell
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
ignore_words_file: ./DiligentFX/.github/.codespellignore
skip: ./DiligentFX/.git,./DiligentFX/ThirdParty
path: ./DiligentFX
build:
needs: precheks
runs-on: ubuntu-20.04
strategy:
matrix:
name: ["GCC", "Clang"]
build_type: ["Debug", "Release"]
# Do not build GLSLang and friends to save time as it is built by Core and Engine CI.
cmake_args: ["-DDILIGENT_NO_GLSLANG=ON -DDILIGENT_NO_HLSL=ON -DDILIGENT_BUILD_FX_INCLUDE_TEST=ON"]
include:
- name: "GCC"
cmake_generator: "Unix Makefiles"
cc: "gcc-9"
cxx: "g++-9"
- name: "Clang"
cmake_generator: "Ninja"
cc: "clang-12"
cxx: "clang++-12"
name: Linux -> ${{ matrix.name }}-x64, ${{ matrix.build_type }}
steps:
- name: Checkout
uses: DiligentGraphics/github-action/checkout@v1
- name: Set up build environment
if: success()
uses: DiligentGraphics/github-action/setup-build-env@v1
with:
platform: Linux
cmake-generator: ${{ matrix.cmake_generator }}
- name: Configure CMake
if: success()
uses: DiligentGraphics/github-action/configure-cmake@v1
with:
cc: ${{ matrix.cc }}
cxx: ${{ matrix.cxx }}
generator: ${{ matrix.cmake_generator }}
build-type: ${{ matrix.build_type }}
cmake-args: ${{ matrix.cmake_args }}
- name: Build
if: success()
uses: DiligentGraphics/github-action/build@v1