Skip to content

Commit

Permalink
Merge branch 'ccrouzet/publish-exts-ci' into 'main'
Browse files Browse the repository at this point in the history
Add a CI Job to Publish the Extensions

See merge request omniverse/warp!535
  • Loading branch information
christophercrouzet committed Jun 5, 2024
2 parents 659d00f + 0d5c132 commit 061b272
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
# CI/CD Pipeline Configuration
# ==============================================================================

include: /.gitlab/ci/common.yml
include:
- /.gitlab/ci/common.yml
- project: "omniverse/sectools/vault"
file: ["templates/v2/omni-packman-s3-creds.yml", "templates/v3/linux/packman_s3.gitlab-ci.yml"]

workflow:
rules:
Expand Down Expand Up @@ -509,6 +512,22 @@ publish wheels to gitlab package registry:
done
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file kit-extensions.zip "https://gitlab-master.nvidia.com/api/v4/projects/${CI_PROJECT_ID}/packages/generic/warp/${CI_COMMIT_REF_SLUG}/kit-extensions.zip"'

# Uploads the extensions to packman.
publish extensions to packman:
stage: deploy
needs: ["create kit artifacts"]
extends:
- .runner-utility-linux-x86_64
rules:
- if: $CI_COMMIT_BRANCH =~ /release-.*/
when: manual
allow_failure: true
script:
- tools/packman/packman pull -p linux-x86_64 deps/kit-deps.packman.xml
- rm -rf exts
- unzip kit-extensions.zip
- tools/repo.sh publish_exts

.build-docs-common:
stage: deploy
image: python:3.11-slim
Expand Down
5 changes: 5 additions & 0 deletions deps/kit-deps.packman.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<project toolsVersion="5.0">
<dependency name="kit-kernel" linkPath="../_build/kit-deps/kit-kernel">
<package name="kit-kernel" version="107.0.1+master.118577.6780f676.gl.${platform}.release" platforms="linux-x86_64"/>
</dependency>
</project>
6 changes: 6 additions & 0 deletions deps/repo-deps.packman.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
<dependency name="repo_build" linkPath="../_repo/deps/repo_build">
<package name="repo_build" version="0.62.7"/>
</dependency>
<dependency name="repo_changelog" linkPath="../_repo/deps/repo_changelog">
<package name="repo_changelog" version="0.8.6" />
</dependency>
<dependency name="repo_kit_tools" linkPath="../_repo/deps/repo_kit_tools">
<package name="repo_kit_tools" version="0.18.3" />
</dependency>
</project>
27 changes: 27 additions & 0 deletions repo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
########################################################################################################################

[repo]

# Repository Name
name = "warp"

extra_tool_paths = [
"${root}/_build/kit-deps/kit-kernel/dev",
]

import_configs = [
"${root}/_repo/deps/repo_kit_tools/kit-template/repo.toml",
]


########################################################################################################################
# Build tool setup
########################################################################################################################
Expand All @@ -27,3 +37,20 @@ fetch.after_pull_commands = [

[repo_build_number]
enabled = true

########################################################################################################################
# Extensions publisher
########################################################################################################################

[repo_publish_exts]

kit_path = "${root}/_build/kit-deps/kit-kernel/kit${exe_ext}"

ext_folders = [
"${root}/exts"
]

exts.include = [
"omni.warp",
"omni.warp.core",
]

0 comments on commit 061b272

Please sign in to comment.