Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CI: enable use of Cirrus CI compute credits by collaborators #24695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2023
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
2 changes: 2 additions & 0 deletions tools/ci/cirrus_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ modified_clone: &MODIFIED_CLONE


linux_aarch64_test_task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
compute_engine_instance:
image_project: cirrus-images
image: family/docker-builder-arm64
Expand Down Expand Up @@ -66,6 +67,7 @@ linux_aarch64_test_task:


macos_arm64_test_task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
depends_on:
- linux_aarch64_test
macos_instance:
Expand Down
3 changes: 3 additions & 0 deletions tools/ci/cirrus_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_and_store_wheels: &BUILD_AND_STORE_WHEELS
######################################################################

linux_aarch64_task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
compute_engine_instance:
image_project: cirrus-images
image: family/docker-builder-arm64
Expand Down Expand Up @@ -52,6 +53,7 @@ linux_aarch64_task:
######################################################################

macosx_arm64_task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:14
matrix:
Expand Down Expand Up @@ -101,6 +103,7 @@ macosx_arm64_task:
######################################################################

wheels_upload_task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary here, because it depends on the wheels being made, and they won't be made unless CIRRUS_USER_COLLABORATOR == True.

# Artifacts don't seem to be persistent from task to task.
# Rather than upload wheels at the end of each cibuildwheel run we do a
# final upload here. This is because a run may be on different OS for
Expand Down