Home

Awesome

GHActionsForOpenUSD

Reusable GitHub Actions for OpenUSD

Usage

composite scripts

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
      
jobs:
  build:
    name: Build Linux
    runs-on: ubuntu-latest
    steps:
      - name: Checkout This Repo
        uses: actions/checkout@v3
      - name: Moved to an actions folder in your own repo
        uses: ./actions/hello_action
      - name: Moved to .github/actions in your own repo
        uses: ./.github/actions/hello_action
      - name: Used from here. (No tagged releases yet. caveat usurpator)
        uses: carlynorama/GHActionsForOpenUSD/actions/hello_action@main

Misc Lessons

References

GitHub Docs

Runner Image Info

Example Actions and Workflows

Handy Snippet

          echo "-----"
          pwd  
          ls
          which python3
          python3 --version
          which python
          python --version
          echo $GITHUB_WORKSPACE
          echo $PATH
          echo $GITHUB_PATH
          echo $GITHUB_ENV
          echo $PYTHONPATH
          echo "-----"
          $USD_BUILD_DIR/bin/usdcat -h
          usdcat -h