Skip to content

Commit

Permalink
Removed all references to legate-gh-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepd-nv committed Aug 7, 2024
1 parent 072cbd9 commit e132734
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:

<% for package_id, package_info in packages.items() %>
- name: Download <<package_info.repo>> (artifacts)
uses: ./legate-gh-ci/.github/actions/download-artifacts
uses: ./.github/actions/download-artifacts
with:
artifact-repo: "<<package_info.repo>>"
artifact-name: "<<package_info.artifact_name | replace_placeholder('repo', package_info.repo) | replace_placeholder('git_tag', package_info.git_tag) >>"
Expand Down
12 changes: 1 addition & 11 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inputs:
platform:
required: true
type: string
legate-gh-ci-tag:
required: true
type: string
build-mode:
required: true
type: string
Expand All @@ -29,13 +26,6 @@ inputs:
runs:
using: composite
steps:
- name: Set LEGATE_GH_CI_DIR dir
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
cd legate-gh-ci
echo "LEGATE_GH_CI_DIR=$(pwd)" >> $GITHUB_ENV
env
- name: Checkout ${{ inputs.client-repo }}
uses: actions/checkout@v4
with:
Expand All @@ -54,7 +44,7 @@ runs:
run: |
WITH_TESTS_STR=''
if [[ ("${{ inputs.upload-enabled }}" == "false") && ("${{ inputs.build-type }}" != "ci") ]]; then
if [[ ("${{ inputs.upload-enabled }}" == "false") && ("${{ inputs.build-type }}" != "ci") ]]; then
WITH_TESTS_STR='-with_tests'
fi
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inputs:
platform:
required: true
type: string
legate-gh-ci-tag:
required: true
type: string
build-mode:
required: true
type: string
Expand All @@ -29,13 +26,6 @@ inputs:
runs:
using: composite
steps:
- name: Set LEGATE_GH_CI_DIR dir
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
cd legate-gh-ci
echo "LEGATE_GH_CI_DIR=$(pwd)" >> $GITHUB_ENV
env
- name: Checkout ${{ inputs.client-repo }}
uses: actions/checkout@v4
with:
Expand All @@ -54,7 +44,7 @@ runs:
run: |
WITH_TESTS_STR=''
if [[ ("${{ inputs.upload-enabled }}" == "false") && ("${{ inputs.build-type }}" != "ci") ]]; then
if [[ ("${{ inputs.upload-enabled }}" == "false") && ("${{ inputs.build-type }}" != "ci") ]]; then
WITH_TESTS_STR='-with_tests'
fi
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/gh-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
build:
if: ${{ github.repository_owner == 'nvidia' }}
uses:
nv-legate/legate-gh-ci/.github/workflows/gh-build.yml@v1.10
.github/workflows/gh-build.yml
with:
client-repo: ${{ github.event.repository.name }}
target-device: ${{ inputs.target-device }}
Expand All @@ -29,7 +29,6 @@ jobs:
use-container: ${{ inputs.platform == 'linux-x64' || inputs.platform == 'linux-aarch64'}}
platform: ${{ inputs.platform }}
dependencies-file: ""
legate-gh-ci-tag: "v1.10"
build-mode: ${{ inputs.build-mode }}
upload-enabled: ${{ inputs.upload-enabled }}
secrets: inherit
27 changes: 7 additions & 20 deletions .github/workflows/gh-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ on:
required: true
type: string
description: path to versions.json relative to the target repo dir
legate-gh-ci-tag:
required: true
type: string
build-mode:
required: true
type: string
Expand All @@ -50,23 +47,13 @@ jobs:
runs-on: ${{ inputs.runs-on }}

steps:
- name: Checkout legate-gh-ci
uses: actions/checkout@v4
with:
repository: 'nv-legate/legate-gh-ci'
ref: ${{ inputs.legate-gh-ci-tag }}
token: ${{ secrets.NV_LEGATE_INTER_REPOS_ACCESS_RO }}
fetch-depth: 0
path: legate-gh-ci

- name: Setup
uses: ./legate-gh-ci/.github/actions/setup
uses: ./.github/actions/setup
with:
client-repo: ${{ inputs.client-repo }}
build-type: ${{ inputs.build-type }}
target-device: "${{ inputs.target-device }}"
platform: ${{ inputs.platform }}
legate-gh-ci-tag: ${{ inputs.legate-gh-ci-tag }}
build-mode: ${{ inputs.build-mode }}
upload-enabled: ${{ inputs.upload-enabled }}
python-version: ${{ inputs.python-version }}
Expand All @@ -79,21 +66,21 @@ jobs:
DEPENDENCIES_FILE=""
if [ -z "${{ inputs.dependencies-file }}" ]; then
DEPENDENCIES_FILE="legate-gh-ci/no_dependencies.json"
DEPENDENCIES_FILE="${REPO_DIR}/continous_integration/no_dependencies.json"
else
DEPENDENCIES_FILE="${{ inputs.client-repo }}/${{ inputs.dependencies-file }}"
DEPENDENCIES_FILE="${REPO_DIR}/${{ inputs.dependencies-file }}"
fi
legate-gh-ci/scripts/render-template.py legate-gh-ci/.github/actions/build/action.yml.j2 "${DEPENDENCIES_FILE}" legate-gh-ci/.github/actions/build/action.yml
${REPO_DIR}/continous_integration/scripts/render-template.py ${REPO_DIR}/.github/actions/build/action.yml.j2 "${DEPENDENCIES_FILE}" ${REPO_DIR}/.github/actions/build/action.yml
- name: Dump templates
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
echo legate-gh-ci/.github/actions/build/action.yml
cat legate-gh-ci/.github/actions/build/action.yml
echo ${REPO_DIR}/.github/actions/build/action.yml
cat ${REPO_DIR}/.github/actions/build/action.yml
- name: Call build action
uses: ./legate-gh-ci/.github/actions/build
uses: ./.github/actions/build
with:
build-type: ${{ inputs.build-type }}
target-device: "${{ inputs.target-device }}"
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/gh-test-within-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ on:
platform:
required: true
type: string
legate-gh-ci-tag:
required: true
type: string
build-mode:
required: true
type: string
Expand Down Expand Up @@ -58,29 +55,19 @@ jobs:
shell: bash --noprofile --norc -xeuo pipefail {0}

steps:
- name: Checkout legate-gh-ci
uses: actions/checkout@v4
with:
repository: 'nv-legate/legate-gh-ci'
ref: ${{ inputs.legate-gh-ci-tag }}
token: ${{ secrets.NV_LEGATE_INTER_REPOS_ACCESS_RO }}
fetch-depth: 0
path: legate-gh-ci

- name: Setup
uses: ./legate-gh-ci/.github/actions/setup
uses: ./.github/actions/setup
with:
client-repo: ${{ inputs.client-repo }}
build-type: ${{ inputs.build-type }}
target-device: "${{ inputs.target-device }}"
platform: ${{ inputs.platform }}
legate-gh-ci-tag: ${{ inputs.legate-gh-ci-tag }}
build-mode: ${{ inputs.build-mode }}
upload-enabled: ${{ inputs.upload-enabled }}
python-version: ${{ inputs.python-version }}

- name: Call test action
uses: ./legate-gh-ci/.github/actions/test
uses: ./.github/actions/test
with:
test-options: ${{ inputs.test-options }}
has-gpu: ${{ inputs.has-gpu }}
17 changes: 2 additions & 15 deletions .github/workflows/gh-test-without-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ on:
platform:
required: true
type: string
legate-gh-ci-tag:
required: true
type: string
build-mode:
required: true
type: string
Expand All @@ -52,29 +49,19 @@ jobs:
shell: bash --noprofile --norc -xeuo pipefail {0}

steps:
- name: Checkout legate-gh-ci
uses: actions/checkout@v4
with:
repository: 'nv-legate/legate-gh-ci'
ref: ${{ inputs.legate-gh-ci-tag }}
token: ${{ secrets.NV_LEGATE_INTER_REPOS_ACCESS_RO }}
fetch-depth: 0
path: legate-gh-ci

- name: Setup
uses: ./legate-gh-ci/.github/actions/setup
uses: ./.github/actions/setup
with:
client-repo: ${{ inputs.client-repo }}
build-type: ${{ inputs.build-type }}
target-device: "${{ inputs.target-device }}"
platform: ${{ inputs.platform }}
legate-gh-ci-tag: ${{ inputs.legate-gh-ci-tag }}
build-mode: ${{ inputs.build-mode }}
upload-enabled: ${{ inputs.upload-enabled }}
python-version: ${{ inputs.python-version }}

- name: Call test action
uses: ./legate-gh-ci/.github/actions/test
uses: ./.github/actions/test
with:
test-options: ${{ inputs.test-options }}
has-gpu: ${{ inputs.has-gpu }}
17 changes: 2 additions & 15 deletions .github/workflows/gh-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ on:
platform:
required: true
type: string
legate-gh-ci-tag:
required: true
type: string
build-mode:
required: true
type: string
Expand Down Expand Up @@ -59,29 +56,19 @@ jobs:
shell: bash --noprofile --norc -xeuo pipefail {0}

steps:
- name: Checkout legate-gh-ci
uses: actions/checkout@v4
with:
repository: 'nv-legate/legate-gh-ci'
ref: ${{ inputs.legate-gh-ci-tag }}
token: ${{ secrets.NV_LEGATE_INTER_REPOS_ACCESS_RO }}
fetch-depth: 0
path: legate-gh-ci

- name: Setup env variables
uses: ./legate-gh-ci/.github/actions/setup
uses: ./.github/actions/setup
with:
client-repo: ${{ inputs.client-repo }}
build-type: ${{ inputs.build-type }}
target-device: "${{ inputs.target-device }}"
platform: ${{ inputs.platform }}
legate-gh-ci-tag: ${{ inputs.legate-gh-ci-tag }}
build-mode: ${{ inputs.build-mode }}
upload-enabled: ${{ inputs.upload-enabled }}
python-version: ${{ inputs.python-version }}

- name: Call upload action
uses: ./legate-gh-ci/.github/actions/upload
uses: ./.github/actions/upload
with:
urmToken: ${{ secrets.URM_ARTIFACT_TOKEN }}
upload-action: ${{ inputs.upload-action }}
Expand Down

0 comments on commit e132734

Please sign in to comment.