Skip to content

Updated readme to contain a more explicit list of objects that have b… #82

Updated readme to contain a more explicit list of objects that have b…

Updated readme to contain a more explicit list of objects that have b… #82

Workflow file for this run

name: CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
env:
CARGO_TERM_COLOR: always
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-20.04
container:
image: luketitley/vfxrs_env_usd:latest
steps:
- uses: actions/checkout@v3
- name: Init submodules
run: git submodule update --init --recursive
- name: Run build
run: rustup default stable && env USD_ROOT=/usr/local/USD cargo build
- name: Run test
run: env USD_ROOT=/usr/local/USD LD_LIBRARY_PATH=/usr/local/USD/lib cargo test
- name: Generate docs
run: env USD_ROOT=/usr/local/USD LD_LIBRARY_PATH=/usr/local/USD/lib cargo doc --no-deps && cp -r target/doc docs/docs && mv docs/index.html docs/docs
- name: Upload docs as artifact
uses: actions/upload-artifact@v3
with:
name: docs
path: docs
# MacOS Disabled for now, see issue #24
build-macos:
if: ${{ false }}
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Init submodules
run: git submodule update --init --recursive
- name: Run build
run: cargo build
# Single deploy job since we're just deploying
deploy_docs:
if: github.ref_name == 'develop'
needs: build-linux
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Download docs
uses: actions/download-artifact@v3
with:
name: docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1