-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.18 KB
/
build-and-deploy.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
name: Build and Deploy web
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone DiligentGraphics.github.io repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Clone DiligentEngine repository
uses: actions/checkout@v3
with:
submodules: recursive
repository: https://github.com/DiligentGraphics/DiligentEngine
- name: Set up build environment
if: success()
uses: DiligentGraphics/github-action/setup-build-env@v1
with:
platform: Emscripten
- name: Configure CMake
if: success()
uses: DiligentGraphics/github-action/configure-cmake@v1
with:
build-type: Release
cmake_args: "-DDILIGENT_NO_WEBGPU=ON"
- name: Build
if: success()
uses: DiligentGraphics/github-action/build@v1
with:
build-args: --target=Tutorial01_HelloTriangle
- name: Combine artifacts
if: success()
run: |
python
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v3
with:
path: |
${{github.workspace}}/BuildArtefacts
retention-days: 90