-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move rapids build job into reusable workflow, schedule it to run nightly
- Loading branch information
Showing
2 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build all RAPIDS repositories | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_call: | ||
|
||
jobs: | ||
check-event: | ||
name: Check GH Event | ||
runs-on: ubuntu-latest | ||
outputs: | ||
ok: ${{ steps.check_gh_event.outputs.ok }} | ||
steps: | ||
- id: check_gh_event | ||
name: Check GH Event | ||
shell: bash | ||
run: | | ||
[[ '${{ github.event_name }}' == 'workflow_call' ]] || \ | ||
[[ '${{ github.event_name }}' == 'schedule' && '${{ github.repository }}' == 'rapidsai/devcontainers' ]] \ | ||
&& echo "ok=true" | tee -a $GITHUB_OUTPUT \ | ||
|| echo "ok=false" | tee -a $GITHUB_OUTPUT; | ||
build-all-rapids-repos: | ||
name: Build all RAPIDS repos | ||
if: needs.check-event.outputs.ok == 'true' | ||
needs: check-event | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@fix/devcontainer-json-location | ||
with: | ||
node_type: cpu32 | ||
extra-repo-deploy-key: CUMLPRIMS_SSH_PRIVATE_DEPLOY_KEY | ||
extra-repo-deploy-key-2: CUGRAPH_OPS_SSH_PRIVATE_DEPLOY_KEY | ||
build_command: | | ||
sccache -z; | ||
clone-all --verbose --clone-upstream --no-update-env; | ||
rapids-generate-scripts; | ||
rapids-make-${PYTHON_PACKAGE_MANAGER}-env; | ||
build-all \ | ||
--verbose \ | ||
-j$(nproc --ignore=1) \ | ||
-DBUILD_TESTS=ON \ | ||
-DBUILD_BENCHMARKS=ON \ | ||
-DBUILD_ANN_BENCH=ON \ | ||
-DBUILD_PRIMS_BENCH=ON \ | ||
$([ "pip" = ${PYTHON_PACKAGE_MANAGER} ] && echo -DUSE_LIBARROW_FROM_PYARROW=ON || echo) \ | ||
; | ||
sccache -s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters