Skip to content

carlynorama/GHActionsForOpenUSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • When a github provided action requests a path it's typically a relative path __under $GITHUB_WORKSPACE __ to place the repository.This appears to require a literal, e.g. Cannot take $GITHUB_ENV variable.

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

About

Reusable GitHub Actions for OpenUSD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published