Skip to content

Commit

Permalink
Add 8cpu resource class to circleci runners
Browse files Browse the repository at this point in the history
  • Loading branch information
phelpsdb committed Jan 4, 2024
1 parent e8bb46a commit 0674bda
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/scripts/circleci-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ systemctl disable circleci.service &>/dev/null || true
# set platform used for circleci installer and token
export platform="linux/amd64"
gcp_key="circleci-auth-token"
cpus="$(lscpu | grep -E '^CPU\(s\)\:\s+[0-9]+$' | awk '{print $2}')"

case "$(uname -m)" in
"arm64" | "aarch64" | "arm")
Expand All @@ -20,7 +21,14 @@ case "$(uname -m)" in
;;
"x86_64" | *)
platform="linux/amd64"
gcp_key="circleci-auth-token"
case "$cpus" in
8)
gcp_key="circleci-auth-token-gcp-n2-standard-8"
;;
4 | *)
gcp_key="circleci-auth-token"
;;
esac
;;
esac

Expand Down

0 comments on commit 0674bda

Please sign in to comment.