Skip to content

Commit d7ae499

Browse files
Added tvos github action
1 parent 19a3081 commit d7ae499

2 files changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/tvos.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: tvOS
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-tvos-clang:
7+
strategy:
8+
matrix:
9+
config: [Debug]
10+
11+
runs-on: macos-latest
12+
name: tvOS, ${{ matrix.config }}
13+
14+
steps:
15+
- name: Clone DiligentTools
16+
uses: actions/checkout@v2
17+
with:
18+
path: DiligentTools
19+
submodules: recursive
20+
21+
- name: Clone DiligentCore
22+
uses: actions/checkout@v2
23+
with:
24+
repository: 'DiligentGraphics/DiligentCore'
25+
path: DiligentCore
26+
submodules: recursive
27+
28+
- name: Format validation
29+
working-directory: DiligentTools
30+
shell: bash
31+
run: |
32+
cd ./BuildTools/FormatValidation
33+
./validate_format_mac.sh
34+
35+
- name: Download Vulkan SDK
36+
if: success()
37+
working-directory: DiligentCore
38+
shell: bash
39+
run: |
40+
cd ./BuildTools/Scripts/github_actions
41+
chmod +x vulkan_sdk.sh
42+
./vulkan_sdk.sh
43+
44+
- name: Configure CMake
45+
if: success()
46+
shell: bash
47+
run: |
48+
cd $GITHUB_WORKSPACE/DiligentTools/BuildTools/Scripts/github_actions
49+
chmod +x create_cmake.sh
50+
./create_cmake.sh "$GITHUB_WORKSPACE"
51+
cd $GITHUB_WORKSPACE/DiligentCore/BuildTools/Scripts/github_actions
52+
chmod +x configure_cmake.sh
53+
./configure_cmake.sh "tvos" "${{runner.workspace}}" ${{ matrix.config }} "-DDILIGENT_NO_GLSLANG=ON -DDILIGENT_NO_HLSL=ON"
54+
55+
- name: Build
56+
if: success()
57+
working-directory: ${{runner.workspace}}/build
58+
shell: bash
59+
run: cmake --build . --config ${{ matrix.config }} --target install -j2

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ To build the module, see [build instructions](https://github.com/DiligentGraphic
2121
| <img src="https://github.com/DiligentGraphics/DiligentCore/blob/master/media/linux-logo.png" width=24 valign="middle"> Linux | [![Build Status](https://github.com/DiligentGraphics/DiligentTools/workflows/Linux/badge.svg?branch=master)](https://github.com/DiligentGraphics/DiligentTools/actions/workflows/linux.yml?query=branch%3Amaster) |
2222
| <img src="https://github.com/DiligentGraphics/DiligentCore/blob/master/media/macos-logo.png" width=24 valign="middle"> MacOS | [![Build Status](https://github.com/DiligentGraphics/DiligentTools/workflows/MacOS/badge.svg?branch=master)](https://github.com/DiligentGraphics/DiligentTools/actions/workflows/macos.yml?query=branch%3Amaster) |
2323
| <img src="https://github.com/DiligentGraphics/DiligentCore/blob/master/media/apple-logo.png" width=24 valign="middle"> iOS | [![Build Status](https://github.com/DiligentGraphics/DiligentTools/workflows/iOS/badge.svg?branch=master)](https://github.com/DiligentGraphics/DiligentTools/actions/workflows/ios.yml?query=branch%3Amaster) |
24+
| <img src="https://github.com/DiligentGraphics/DiligentCore/blob/master/media/tvos-logo.png" width=24 valign="middle"> tvOS | [![Build Status](https://github.com/DiligentGraphics/DiligentTools/workflows/tvOS/badge.svg?branch=master)](https://github.com/DiligentGraphics/DiligentTools/actions/workflows/tvos.yml?query=branch%3Amaster) |
25+
2426

2527
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](License.txt)
2628
[![Chat on gitter](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/diligent-engine)

0 commit comments

Comments
 (0)