-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (58 loc) · 1.83 KB
/
ci.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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
checks: write
id-token: write
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
os: [windows, linux]
python: ["3.10"]
include:
- { os: windows, runs-on: { group: nvrgfx, labels: [Windows, X64] } }
- { os: linux, runs-on: { group: nvrgfx, labels: [Linux, X64] } }
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
# Environment variables used by ci.py
CI_PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install dependencies
run: python .build_agent/ci.py dependencies
- name: Run precommit
run: python .build_agent/ci.py precommit
- name: Install slangpy
run: python .build_agent/ci.py install
- name: Run tests (vulkan / emulated)
run: python .build_agent/ci.py test --device=vulkan --emulated
#- name: Run tests (vulkan / native)
# run: python .build_agent/ci.py test --device=vulkan
- name: Run tests (d3d12 / emulated)
if: matrix.os=='windows'
run: python .build_agent/ci.py test --device=d3d12 --emulated
#- name: Run tests (d3d12 / native)
# if: matrix.os=='windows'
# run: python .build_agent/ci.py test --device=d3d12
- name: Unit Test Report
uses: mikepenz/action-junit-report@v4
with:
report_paths: '*-junit.xml'
- name: Cleanup
if: always()
run: python .build_agent/ci.py cleanup