Skip to content

Commit 3310f18

Browse files
authored
Merge pull request LuxCoreRender#30 from LuxCoreRender/for_v1.1
For v1.1
2 parents 50d965e + 975e3c6 commit 3310f18

47 files changed

Lines changed: 534 additions & 1190 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 209 additions & 116 deletions
Large diffs are not rendered by default.

.github/workflows/check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
name: LuxCore Dependency Checker
1111

12+
permissions: read-all
13+
1214
on:
1315
workflow_dispatch:
1416
push:
@@ -17,4 +19,5 @@ jobs:
1719
call-build-deps:
1820
uses: ./.github/workflows/build.yml
1921
with:
22+
# This must be kept in lower case (incorporated to Conan package name)
2023
luxdeps-version: "check"

.github/workflows/monitor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
name: LuxCore Dependency Monitoring
1414

15+
permissions: read-all
16+
1517
on:
1618
schedule:
1719
- cron: "0 0 * * 5"
@@ -20,4 +22,5 @@ jobs:
2022
call-build-deps:
2123
uses: ./.github/workflows/build.yml
2224
with:
23-
luxdeps-version: "Monitor"
25+
# This must be kept in lower case (incorporated to Conan package name)
26+
luxdeps-version: "monitor"

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Once populated, the cache is bundled (`conan cache save`) and published
2323
in a Github release.
2424

2525
### On consumer side (LuxCore)
26-
In LuxCore, the provided cache is downloaded from the release and
27-
restored locally (`conan cache restore`), thus making all the dependencies
26+
In LuxCore, the provided cache is downloaded from the LuxCoreDeps release
27+
and restored locally (`conan cache restore`), thus making all the dependencies
2828
available for LuxCore build.
29-
In LuxCore, cache download and restoration are wrapped in a convenient
29+
In LuxCore, the download and restoration of the cache are wrapped in a convenient
3030
`make deps` statement.
3131

3232
```mermaid
@@ -98,6 +98,7 @@ how to modify such a file.
9898
### Where to start - LuxCoreDeps entry points
9999
The main entry point is `.github/workflows/build.yml`.
100100
Other interesting files may be:
101+
- `run-conan.sh`: the bash script that invokes Conan
101102
- `conanfile.py`: Conan script to build dependencies
102103
- `conan-profiles`: folder with Conan profiles
103104

@@ -107,7 +108,8 @@ LuxCoreDeps follows Semantic Versioning (https://semver.org).
107108
### Compilation environment
108109
For Python wheels to be built properly, it is essential that dependencies be built
109110
by `CIBUILDWHEEL`, with the same environment (compiler version, manylinux container,
110-
etc.) as the one intended for the wheels.
111+
etc.) as the one intended for the wheels. This is especially true for Linux build, which
112+
must occur in a manylinux container. See https://cibuildwheel.pypa.io/en/stable/ for more details.
111113

112114
### Local recipes
113115
Most of Conan recipes used by LuxCoreDeps are to be found in Conan central repository (Conan center).

local-conan-recipes/imguifiledialog/conandata.yml renamed to conan-local-recipes/recipes/imguifiledialog/all/conandata.yml

File renamed without changes.

local-conan-recipes/imguifiledialog/conanfile.py renamed to conan-local-recipes/recipes/imguifiledialog/all/conanfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class ImguiFileDialogConan(ConanFile):
1717
settings = "os", "arch", "compiler", "build_type"
1818
homepage = "https://github.com/aiekick/ImGuiFileDialog"
1919
license = "MIT"
20-
version = "0.6.7"
2120
options = {
2221
"shared": [True, False],
2322
"fPIC": [True, False],
@@ -28,7 +27,7 @@ class ImguiFileDialogConan(ConanFile):
2827
"fPIC": True,
2928
"use_std_filesystem": True,
3029
}
31-
requires = "imgui/1.91.8"
30+
requires = "imgui/1.92.4"
3231

3332

3433
def config_options(self):
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
versions:
2+
"0.6.7":
3+
folder: all
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sources:
2+
"12.8.93":
3+
Linux:
4+
x86_64:
5+
url: "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/linux-x86_64/cuda_nvrtc-linux-x86_64-12.8.93-archive.tar.xz"
6+
sha256: "992f5e4d95cb499f41e442245efa877dbd60c711451afe680a26700d61eb3843"
7+
Windows:
8+
x86_64:
9+
url: "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/windows-x86_64/cuda_nvrtc-windows-x86_64-12.8.93-archive.zip"
10+
sha256: "a63302a077f0248a743a1a7caa7dbd80d0fac56c6cfa9c41fa05fac9b7e5eda5"
11+
"13.0.88":
12+
Linux:
13+
x86_64:
14+
url: "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/linux-x86_64/cuda_nvrtc-linux-x86_64-13.0.88-archive.tar.xz"
15+
sha256: "00038aac08e1dba6f1933237dbfb217ac6452ae24fab970edcac808f103ca64b"
16+
Windows:
17+
x86_64:
18+
url: "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/windows-x86_64/cuda_nvrtc-windows-x86_64-13.0.88-archive.zip"
19+
sha256: "8c50a52467826167e0dbe99936140c52d62272bfc5849fe2d6587d050c8c5d29"

local-conan-recipes/nvrtc/conanfile.py renamed to conan-local-recipes/recipes/nvrtc/binary/conanfile.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
class nvrtcRecipe(ConanFile):
1111
name = "nvrtc"
12-
version = "12.8.61"
1312
user = "luxcore"
1413
channel = "luxcore"
1514
package_type = "library"
@@ -28,19 +27,13 @@ def validate(self):
2827
raise ConanInvalidConfiguration("MacOS not supported")
2928

3029
def build(self):
31-
_os = str(self.settings.os)
32-
quirks = {
33-
"Linux": ("linux-x86_64", "tar.xz"),
34-
"Windows": ("windows-x86_64", "zip"),
35-
}
36-
37-
platform, extension = quirks[_os]
38-
39-
url = (
40-
"https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/"
41-
f"{platform}/cuda_nvrtc-{platform}-{self.version}-archive.{extension}"
30+
arch = "x86_64"
31+
get(
32+
self,
33+
**self.conan_data["sources"][self.version][str(self.settings.os)][arch],
34+
destination=self.build_folder,
35+
strip_root=True
4236
)
43-
get(self, url, destination=self.build_folder, strip_root=True)
4437

4538
def generate(self):
4639
tc = CMakeToolchain(self)

0 commit comments

Comments
 (0)