Skip to content

Commit

Permalink
Use latest TC client version for macos CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed Jul 10, 2023
1 parent 8a0f25e commit a1509e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/start-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

set -x

TC_VERSION=v44.4.0
TC_PROJECT=fuzzing
TC_WORKER_TYPE=ci-osx
TC_IDLE_TIMEOUT=300
Expand Down Expand Up @@ -40,6 +39,12 @@ EOF
set -x
unset TASKCLUSTER_ACCESS_TOKEN

retry_curl () {
curl --connect-timeout 25 --fail --retry 5 --show-error --silent "$@"
}

# '|| kill $$' is to emulate 'set -o pipefail'
TC_VERSION="$({ retry_curl --head "https://github.com/taskcluster/taskcluster/releases/latest" || kill "$$"; } | { grep ^location || kill "$$"; } | { sed 's/.\{1,\}\/tag\/\(.\{1,\}\)[[:space:]]\{1,\}/\1/' || kill "$$"; })"
curl -sSL "https://github.com/taskcluster/taskcluster/releases/download/$TC_VERSION/generic-worker-simple-darwin-amd64" -o generic-worker
curl -sSL "https://github.com/taskcluster/taskcluster/releases/download/$TC_VERSION/livelog-darwin-amd64" -o livelog
curl -sSL "https://github.com/taskcluster/taskcluster/releases/download/$TC_VERSION/taskcluster-proxy-darwin-amd64" -o taskcluster-proxy
Expand Down

0 comments on commit a1509e2

Please sign in to comment.