Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ concurrency:
cancel-in-progress: true
permissions: {}
jobs:
build-details:
uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main
conda-python-build:
needs: [build-details]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: branch
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
script: ci/build_python.sh
pure-conda: true
permissions:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
needs: ${{ toJSON(needs) }}
permissions:
contents: read
build-details:
uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main
checks:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,11 +36,12 @@ jobs:
- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
conda-python-build:
needs: [checks]
needs: [build-details, checks]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: pull-request
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
script: ci/build_python.sh
pure-conda: true
permissions:
Expand Down
2 changes: 1 addition & 1 deletion ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set -euo pipefail

source rapids-date-string
source rapids-datetime-string

rapids-print-env

Expand Down
4 changes: 2 additions & 2 deletions conda/recipes/rapids-cli/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ schema_version: 1
context:
version: ${{ env.get("RAPIDS_PACKAGE_VERSION") }}
minor_version: ${{ (version | split("."))[:2] | join(".") }}
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
datetime_string: '${{ env.get("RAPIDS_DATETIME_STRING") }}'
head_rev: '${{ git.head_rev(".")[:8] }}'

package:
Expand All @@ -17,7 +17,7 @@ source:

build:
noarch: python
string: ${{ date_string }}_${{ head_rev }}
string: ${{ datetime_string }}_${{ head_rev }}
script:
content: |
python -m pip install -v .
Expand Down
Loading