Update scripts to test the library #2
Workflow file for this run
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
name: linux | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 300 | |
strategy: | |
fail-fast: false | |
matrix: | |
name: [ | |
"USD-23.05-py37", | |
"USD-20.11-py37", | |
] | |
include: | |
- name: "USD-23.05-py37" | |
usd-tag: "v23.05" | |
python: "3.7" | |
- name: "USD-20.11-py37" | |
usd-tag: "v20.11" | |
python: "3.7" | |
steps: | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Create Build Environment | |
run: | | |
sudo apt update | |
sudo apt install -y libgtest-dev ninja-build | |
pip install pytest | |
cmake -E make_directory ${{runner.workspace}}/build | |
cmake -E make_directory ${{runner.workspace}}/USD | |
- name: Install USD | |
working-directory: ${{runner.workspace}}/USD | |
run: | | |
git clone https://github.com/PixarAnimationStudios/USD.git \ | |
--depth 1 --branch ${{ matrix.usd-tag }} ./src | |
python ./src/build_scripts/build_usd.py . \ | |
--no-tests \ | |
--no-examples \ | |
--no-tutorials \ | |
--no-tools \ | |
--no-docs \ | |
--no-imaging \ | |
--no-materialx | |
- name: Configure & Build | |
working-directory: ${{runner.workspace}}/build | |
run: | | |
export PYTHONPATH="${{runner.workspace}}/USD/lib/python" | |
cmake \ | |
-D "BUILD_DOCS=OFF" \ | |
-D "CMAKE_INCLUDE_PATH=${{runner.workspace}}/USD/include" \ | |
-D "CMAKE_LIBRARY_PATH=${{runner.workspace}}/USD/lib" \ | |
${GITHUB_WORKSPACE} | |
cmake --build . --config Release | |
- name: Test | |
working-directory: ${{runner.workspace}}/build | |
run: ctest -VV | |
env: | |
CTEST_OUTPUT_ON_FAILURE: True |