forked from openvdb/fvdb-reality-capture
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.11 KB
/
Copy pathdebug.yml
File metadata and controls
45 lines (39 loc) · 1.11 KB
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
name: Github Actions Debug
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to build"
required: true
default: "main"
permissions:
contents: read
deployments: read
pull-requests: read
issues: read
# Need ID token write permission to use OIDC
id-token: write
jobs:
make-artifact:
name: Make an artifact with the commit hash
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches
- name: Clone fvdb-core
id: clone_fvdb_core
run: |
echo "Cloning fVDB"
pwd
git clone https://github.com/openvdb/fvdb-core.git
pushd fvdb-core
FVDB_CORE_COMMIT_HASH=$(git rev-parse HEAD)
echo "fvdb_core_commit_hash=$FVDB_CORE_COMMIT_HASH" >> "$GITHUB_OUTPUT"
popd
- name: Upload fvdb-core wheel
uses: actions/upload-artifact@v4
with:
name: fvdb-wheel-${{ steps.clone_fvdb_core.outputs.fvdb_core_commit_hash }}
path: fvdb-core/build.sh
retention-days: 2