-
Notifications
You must be signed in to change notification settings - Fork 1
105 lines (95 loc) · 3.43 KB
/
cached_usd_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
###################
#
# SEE INSTEAD https://github.com/carlynorama/GHActionsForOpenUSD/
#
###################
# # see https://github.com/pablode/USD/blob/v22.11-ci/.github/workflows/deploy-release.yml
# # https://github.com/usd-wg/assets/pull/49
# # https://github.com/usd-wg/assets/pull/48
# # About Ubuntu-Latest
# # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
# # https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
# # About Cache Actions
# # https://github.com/marketplace/actions/cache
# name: Build Linux
# 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: Find Local Action
# uses: ./.github/actions/hello_action
# - name: Update apt-get
# run: sudo apt-get update
# # Ubuntu latest has much of what is needed.
# # https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
# # Still needed OpenGL
# - name: Set up packages (Linux)
# run: |
# sudo apt-get update
# sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev
# - name: Restore OpenUSD (Repo and Build)
# id: cache-openusd-restore
# uses: actions/cache/restore@v3
# with:
# path: |
# OpenUSD_REPO
# OpenUSD_NOPYTHON_BUILD
# key: ${{ runner.os }}-openusdnp
# - name: Build Fresh No Python
# if: steps.cache-openusd-restore.outputs.cache-hit != 'true'
# uses: ./.github/actions/clone_and_build_no_python
# - name: Use Cached Build
# if: steps.cache-openusd-restore.outputs.cache-hit == 'true'
# run: |
# echo "USD_REPO_DIR=$PWD/OpenUSD_REPO" >> $GITHUB_ENV
# echo "USD_BUILD_DIR=$PWD/OpenUSD_NOPYTHON_BUILD" >> $GITHUB_ENV
# - name: Tell me about Environement
# run: |
# echo "-----"
# pwd
# ls
# which python3
# python3 --version
# which python
# python --version
# echo $GITHUB_WORKSPACE
# echo $PATH
# echo $GITHUB_ENV
# echo .env
# echo "-----"
# - name: Save OpenUSD Cache (Repo & Build)
# id: cache-openusdnp-save
# uses: actions/cache/save@v3
# with:
# path: |
# OpenUSD_REPO
# OpenUSD_NOPYTHON_BUILD
# key: ${{ steps.cache-openusdnp-restore.outputs.cache-primary-key }}
# # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
# - name: Confirms Runs With Full Path Post Save
# run: |
# $USD_BUILD_DIR/bin/usdcat -h
# - name: Add OpenUSD Build to PATH and PYTHONPATH
# run: |
# export PYTHONPATH=$PYTHONPATH:$USD_BUILD_DIR/lib/python
# echo "$USD_BUILD_DIR/bin" >> $GITHUB_PATH
# echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
# - name: Confirm in Path
# run: |
# echo "----- START Did it work?"
# echo $USD_BUILD_DIR
# echo $PYTHONPATH
# echo $PATH
# echo $GITHUB_PATH
# echo $GITHUB_ENV
# ls $USD_BUILD_DIR/bin/
# echo "-----"
# usdcat -h