diff --git a/.github/workflows/extension_bump.yml b/.github/workflows/extension_bump.yml index 31676e5c914719a34f8b2e61193475ed107cd2db..6d41aeecc173edc9b5b54db1e109bbd70f2a6436 100644 --- a/.github/workflows/extension_bump.yml +++ b/.github/workflows/extension_bump.yml @@ -66,7 +66,7 @@ jobs: if: |- (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') && (inputs.force-bump == 'true' || needs.check_bump_needed.outputs.needs_bump == 'true') - runs-on: namespace-profile-8x16-ubuntu-2204 + runs-on: namespace-profile-2x4-ubuntu-2404 steps: - id: generate-token name: extension_bump::generate_token @@ -119,7 +119,7 @@ jobs: needs: - check_bump_needed if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') && github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.check_bump_needed.outputs.needs_bump == 'false' - runs-on: namespace-profile-8x16-ubuntu-2204 + runs-on: namespace-profile-2x4-ubuntu-2404 steps: - id: generate-token name: extension_bump::generate_token diff --git a/.github/workflows/extension_release.yml b/.github/workflows/extension_release.yml index 5212a79c3e55637aa932be62aea0a626af545a7c..557d056d01fd6bd7217c24e7fc90a68905e28a36 100644 --- a/.github/workflows/extension_release.yml +++ b/.github/workflows/extension_release.yml @@ -13,7 +13,7 @@ on: jobs: create_release: if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') - runs-on: namespace-profile-8x16-ubuntu-2204 + runs-on: namespace-profile-2x4-ubuntu-2404 steps: - id: generate-token name: extension_bump::generate_token diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.yml index 9f0917e388c74cffed8f342f7504bc111e6f5147..e5d711b833ffe838cf5d7a972ddf99623ed44ab7 100644 --- a/.github/workflows/extension_tests.yml +++ b/.github/workflows/extension_tests.yml @@ -51,7 +51,7 @@ jobs: needs: - orchestrate if: needs.orchestrate.outputs.check_rust == 'true' - runs-on: namespace-profile-16x32-ubuntu-2204 + runs-on: namespace-profile-4x8-ubuntu-2204 steps: - name: steps::checkout_repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 diff --git a/extensions/workflows/bump_version.yml b/extensions/workflows/bump_version.yml index 0710d12d435e8a6f259cf748783194e9598039e6..3db39eeefbca80b212bc119a60fb3bf3efa049e1 100644 --- a/extensions/workflows/bump_version.yml +++ b/extensions/workflows/bump_version.yml @@ -13,6 +13,7 @@ on: workflow_dispatch: {} jobs: determine_bump_type: + if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') runs-on: namespace-profile-2x4-ubuntu-2404 permissions: {} steps: diff --git a/tooling/xtask/src/tasks/workflows/extension_bump.rs b/tooling/xtask/src/tasks/workflows/extension_bump.rs index 8772011a2d1f48550095a916ab516cc98ac2d1f7..eac25ffbaf5ef806beab89999b6457504a8d1bd8 100644 --- a/tooling/xtask/src/tasks/workflows/extension_bump.rs +++ b/tooling/xtask/src/tasks/workflows/extension_bump.rs @@ -107,7 +107,7 @@ fn create_version_label( "{DEFAULT_REPOSITORY_OWNER_GUARD} && github.event_name == 'push' && github.ref == 'refs/heads/main' && {} == 'false'", needs_bump.expr(), ))) - .runs_on(runners::LINUX_LARGE) + .runs_on(runners::LINUX_SMALL) .timeout_minutes(1u32) .add_step(generate_token) .add_step(steps::checkout_repo()) @@ -190,7 +190,7 @@ fn bump_extension_version( force_bump.expr(), needs_bump.expr(), ))) - .runs_on(runners::LINUX_LARGE) + .runs_on(runners::LINUX_SMALL) .timeout_minutes(1u32) .add_step(generate_token) .add_step(steps::checkout_repo()) diff --git a/tooling/xtask/src/tasks/workflows/extension_release.rs b/tooling/xtask/src/tasks/workflows/extension_release.rs index c55fed0cb8a0959923be79a55f0397d6190453e4..2344495661ca523f570dc2f7a0c95039082bb5ce 100644 --- a/tooling/xtask/src/tasks/workflows/extension_release.rs +++ b/tooling/xtask/src/tasks/workflows/extension_release.rs @@ -33,7 +33,7 @@ fn create_release(app_id: &WorkflowSecret, app_secret: &WorkflowSecret) -> Named let job = Job::default() .with_repository_owner_guard() - .runs_on(runners::LINUX_LARGE) + .runs_on(runners::LINUX_SMALL) .add_step(generate_token) .add_step(checkout_repo()) .add_step(get_extension_id) diff --git a/tooling/xtask/src/tasks/workflows/extension_tests.rs b/tooling/xtask/src/tasks/workflows/extension_tests.rs index 480559121413ebc88e37300fd632d32b1d79aa91..ec90c80e8a3cafe72b5d6c88afa66f3a3f67f32f 100644 --- a/tooling/xtask/src/tasks/workflows/extension_tests.rs +++ b/tooling/xtask/src/tasks/workflows/extension_tests.rs @@ -48,7 +48,7 @@ fn run_clippy() -> Step { fn check_rust() -> NamedJob { let job = Job::default() .with_repository_owner_guard() - .runs_on(runners::LINUX_DEFAULT) + .runs_on(runners::LINUX_MEDIUM) .timeout_minutes(3u32) .add_step(steps::checkout_repo()) .add_step(steps::cache_rust_dependencies_namespace()) diff --git a/tooling/xtask/src/tasks/workflows/extensions/bump_version.rs b/tooling/xtask/src/tasks/workflows/extensions/bump_version.rs index 495942cc45958bb5a75421ce76228aade00c6aeb..90cc07aa48e4b2ef8dc76caa4219169b1e6176a8 100644 --- a/tooling/xtask/src/tasks/workflows/extensions/bump_version.rs +++ b/tooling/xtask/src/tasks/workflows/extensions/bump_version.rs @@ -7,7 +7,7 @@ use indoc::indoc; use crate::tasks::workflows::{ runners, - steps::{NamedJob, named}, + steps::{CommonJobConditions, NamedJob, named}, vars::{self, JobOutput, StepOutput, one_workflow_per_non_main_branch_and_token}, }; @@ -72,6 +72,7 @@ pub(crate) fn call_bump_version( fn determine_bump_type() -> (NamedJob, StepOutput) { let (get_bump_type, output) = get_bump_type(); let job = Job::default() + .with_repository_owner_guard() .permissions(Permissions::default()) .runs_on(runners::LINUX_SMALL) .add_step(get_bump_type)