Skip to content

Commit

Permalink
Add initial support for UsdShade (#4)
Browse files Browse the repository at this point in the history
* Make cargo deny independent in Rust CI

Signed-off-by: Andrej Orsula <[email protected]>

* Document path environment variable
[skip ci]

Signed-off-by: Andrej Orsula <[email protected]>

* Update badges

Signed-off-by: Andrej Orsula <[email protected]>

* Update Dockerfile

Signed-off-by: Andrej Orsula <[email protected]>

* Add `pxr::UsdGeomXformOp::set_quatf()`

Signed-off-by: Andrej Orsula <[email protected]>

* Add initial support for `UsdShade*`

Signed-off-by: Andrej Orsula <[email protected]>

* Add Dependabot automation

Signed-off-by: Andrej Orsula <[email protected]>

* Update Rust CI

Signed-off-by: Andrej Orsula <[email protected]>

---------

Signed-off-by: Andrej Orsula <[email protected]>
  • Loading branch information
AndrejOrsula authored Mar 9, 2024
1 parent 179fa3a commit 66334e7
Show file tree
Hide file tree
Showing 16 changed files with 1,108 additions and 107 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dependabot.yml
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"
17 changes: 13 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
cancel-in-progress: true

env:
MSRV: "1.70"
CARGO_TERM_COLOR: always
BUILD_LIB_PACKAGE_NAME: pxr_build
SYS_LIB_PACKAGE_NAME: pxr_sys
Expand All @@ -39,7 +40,7 @@ jobs:
fail-fast: false
matrix:
toolchain:
- "1.70" # Minimal supported Rust version (MSRV)
- MSRV
- stable
- beta
steps:
Expand All @@ -48,9 +49,18 @@ jobs:
with:
save-if: ${{ github.event_name == 'push'}}
- uses: dtolnay/rust-toolchain@master
if: ${{ matrix.toolchain != 'MSRV' && matrix.toolchain != 'stable' }}
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- uses: dtolnay/rust-toolchain@master
if: ${{ matrix.toolchain == 'MSRV' }}
with:
toolchain: ${{ env.MSRV }}
- uses: dtolnay/rust-toolchain@master
if: ${{ matrix.toolchain == 'stable' }}
with:
toolchain: ${{ matrix.toolchain }}
components: clippy

## Install dependencies
- run: sudo apt-get update && sudo apt-get install -yq --no-install-recommends cmake libarchive-dev libgl-dev libglu-dev libilmbase-dev libssl-dev libx11-dev libxt-dev
Expand Down Expand Up @@ -101,10 +111,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
fail_ci_if_error: false

deny:
needs: cargo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit 66334e7

Please sign in to comment.