forked from LuxCoreRender/LuxCoreDeps
-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (76 loc) · 2.54 KB
/
check.yml
File metadata and controls
94 lines (76 loc) · 2.54 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
93
94
# SPDX-FileCopyrightText: 2025 Howetuft
#
#
# SPDX-License-Identifier: Apache-2.0
# Check that dependencies are suitable for future use
name: LuxCore Dependency Checker
on:
workflow_dispatch:
push:
jobs:
call-build-deps:
uses: ./.github/workflows/build.yml
check-deps:
name: Check dependencies
runs-on: ${{ matrix.os }}
needs: [call-build-deps]
strategy:
fail-fast: False
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
env:
SCCACHE_GHA_ENABLED: on
steps:
- name: Checkout LuxCore repository
uses: actions/checkout@v4
with:
repository: 'LuxCoreRender/LuxCore'
ref: 'for_v2.10'
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: luxcore-deps-${{ matrix.os }}
path: ${{ github.workspace }}/dist
merge-multiple: false
- name: Display structure of downloaded files
shell: bash
run: ls -R $GITHUB_WORKSPACE/dist
- name: Install Conan
run: pip install conan
- name: Update apt
if: runner.os == 'Linux'
run: |
sudo apt-get update -y
- name: Install sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
- name: Configure sccache
uses: actions/github-script@v7
with:
script: |
core.exportVariable('CMAKE_C_COMPILER_LAUNCHER', 'sccache');
core.exportVariable('CMAKE_CXX_COMPILER_LAUNCHER', 'sccache');
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Set Conan parameters
shell: bash
run: |
echo "CONAN_HOME=${{ github.workspace }}/.conan2" >> $GITHUB_ENV
- name: Prepare deps
shell: bash
run: |
_path='${{ github.workspace }}/dist/luxcore-deps-${{ matrix.os }}/conan-cache-save.tgz'
echo "Path to downloaded cache: ${_path}"
python cmake/make_deps.py -l "${_path}" -v
- name: Display OIDN contents
shell: bash
run: ls -R $LUX_OIDN_DENOISE_LIBS
- name: Build LuxCore (*nix)
if: runner.os != 'Windows'
shell: bash
run: make
- name: Build LuxCore (Window)
if: runner.os == 'Windows'
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
make