-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile and add Dependabot automation (#3)
* Update badges Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com> * Bump derive_builder to 0.13 Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com> * Update Dockerfile Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com> * Link only necessary libs Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com> * Update Rust CI Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com> * CI: Add Dependabot automation Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com> --------- Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
- Loading branch information
1 parent
75b7bfe
commit ea827b5
Showing
9 changed files
with
349 additions
and
177 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
.docker/internal/pxr_sys/patches/src/build_scripts/build_usd.py.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- ./build_scripts/build_usd.py | ||
+++ ./build_scripts/build_usd.py | ||
@@ -695,7 +695,7 @@ | ||
BOOST_URL = "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz" | ||
BOOST_VERSION_FILE = "include/boost/version.hpp" | ||
elif Linux(): | ||
- BOOST_URL = "https://boostorg.jfrog.io/artifactory/main/release/1.70.0/source/boost_1_70_0.tar.gz" | ||
+ BOOST_URL = "https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.gz" | ||
BOOST_VERSION_FILE = "include/boost/version.hpp" | ||
elif Windows(): | ||
# The default installation of boost on Windows puts headers in a versioned | ||
@@ -1166,6 +1166,10 @@ | ||
|
||
def InstallOpenEXR(context, force, buildArgs): | ||
with CurrentWorkingDirectory(DownloadURL(OPENEXR_URL, context, force)): | ||
+ PatchFile( | ||
+ "OpenEXR/IlmImf/ImfTiledMisc.cpp", | ||
+ [("#include <algorithm>\n", "#include <algorithm>\n#include <limits>\n")], | ||
+ ) | ||
RunCMake(context, force, | ||
['-DPYILMBASE_ENABLE=OFF', | ||
'-DOPENEXR_VIEWERS_ENABLE=OFF', | ||
@@ -1561,10 +1565,9 @@ | ||
|
||
def InstallAlembic(context, force, buildArgs): | ||
with CurrentWorkingDirectory(DownloadURL(ALEMBIC_URL, context, force)): | ||
- if MacOS(): | ||
- PatchFile("CMakeLists.txt", | ||
- [("ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)", | ||
- "ADD_DEFINITIONS(-Wall -Wextra -Wno-unused-parameter)")]) | ||
+ PatchFile("CMakeLists.txt", | ||
+ [("ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)", | ||
+ "ADD_DEFINITIONS(-Wall -Wextra -Wno-unused-parameter)")]) | ||
cmakeOptions = ['-DUSE_BINARIES=OFF', '-DUSE_TESTS=OFF'] | ||
if context.enableHDF5: | ||
# HDF5 requires the H5_BUILT_AS_DYNAMIC_LIB macro be defined if | ||
@@ -1589,6 +1592,14 @@ | ||
|
||
def InstallDraco(context, force, buildArgs): | ||
with CurrentWorkingDirectory(DownloadURL(DRACO_URL, context, force)): | ||
+ PatchFile( | ||
+ "src/draco/core/hash_utils.h", | ||
+ [("#include <functional>\n", "#include <functional>\n#include <cstddef>\n")], | ||
+ ) | ||
+ PatchFile( | ||
+ "src/draco/io/parser_utils.cc", | ||
+ [("#include <iterator>\n", "#include <iterator>\n#include <limits>\n")], | ||
+ ) | ||
cmakeOptions = [ | ||
'-DBUILD_USD_PLUGIN=ON', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Dependabot automation | ||
on: pull_request | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot_automation: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} | ||
steps: | ||
- name: Fetch metadata | ||
id: metadata | ||
uses: dependabot/fetch-metadata@v1 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Approve the PR | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: gh pr review --approve "$PR_URL" | ||
- name: Enable auto-merge for the PR | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: gh pr merge --auto --merge "$PR_URL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.