File tree 2 files changed +19
-6
lines changed
2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# This script selects the Xcode instance to use.
3
3
4
- set -euo pipefail
4
+ set -euox pipefail
5
5
IFS=$' \n\t '
6
6
7
7
source " $( cd " $( dirname " $0 " ) " && pwd) /../shared.sh"
8
8
9
9
if isMacOS; then
10
+ old_xcode=" $( xcode-select --print-path) "
11
+ if [[ $old_xcode =~ $SELECT_XCODE ]]; then
12
+ echo " xcode-select.sh's brutal hack may not be necessary?"
13
+ exit 1
14
+ elif [[ $SELECT_XCODE =~ " 16" ]]; then
15
+ echo " Using xcode 16? Please fix xcode-select.sh"
16
+ exit 1
17
+ else
18
+ sudo xcode-select -s 16
19
+ xcode_16_path=" $( xcode-select --print-path) "
20
+ sudo rm -rf " ${xcode_16_path} /../../"
21
+ fi
22
+ sudo rm -rf " ${old_xcode} /../../"
10
23
sudo xcode-select -s " ${SELECT_XCODE} "
11
24
fi
Original file line number Diff line number Diff line change 19
19
if [[ " ${DEPLOY-0} " -eq " 1" ]] || [[ " ${DEPLOY_ALT-0} " -eq " 1" ]]; then
20
20
dist_dir=" ${build_dir} /dist"
21
21
rm -rf " ${dist_dir} /doc"
22
- cp -r " ${dist_dir} " /* " ${upload_dir} "
22
+ mv -r " ${dist_dir} " /* " ${upload_dir} "
23
23
fi
24
24
25
25
# CPU usage statistics.
26
- cp build/cpu-usage.csv " ${upload_dir} /cpu-${CI_JOB_NAME} .csv"
26
+ mv build/cpu-usage.csv " ${upload_dir} /cpu-${CI_JOB_NAME} .csv"
27
27
28
28
# Build metrics generated by x.py.
29
- cp " ${build_dir} /metrics.json" " ${upload_dir} /metrics-${CI_JOB_NAME} .json"
29
+ mv " ${build_dir} /metrics.json" " ${upload_dir} /metrics-${CI_JOB_NAME} .json"
30
30
31
31
# Toolstate data.
32
32
if [[ -n " ${DEPLOY_TOOLSTATES_JSON+x} " ]]; then
33
- cp /tmp/toolstate/toolstates.json " ${upload_dir} /${DEPLOY_TOOLSTATES_JSON} "
33
+ mv /tmp/toolstate/toolstates.json " ${upload_dir} /${DEPLOY_TOOLSTATES_JSON} "
34
34
fi
35
35
36
36
echo " Files that will be uploaded:"
55
55
echo " # CI artifacts" >> " ${GITHUB_STEP_SUMMARY} "
56
56
57
57
for filename in " ${upload_dir} " /* .xz; do
58
- filename=` basename " ${filename} " `
58
+ filename=$( basename " ${filename} " )
59
59
echo " - [${filename} ](${access_url} /${filename} )" >> " ${GITHUB_STEP_SUMMARY} "
60
60
done
61
61
fi
You can’t perform that action at this time.
0 commit comments