File tree 3 files changed +6
-14
lines changed
3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 3
3
set -eu
4
4
5
5
SERVO_GIT_HASH=$( git ls-remote https://github.com/servo/servo.git --branches refs/heads/main | awk ' { print $1}' )
6
- HOS_COMMANDLINE_TOOLS_VERSION=" 5.0.3.906"
7
- GITHUB_ACTIONS_RUNNER_VERSION=" 2.322.0"
6
+ GITHUB_ACTIONS_RUNNER_VERSION=" 2.323.0"
8
7
RUST_VERSION=" 1.85.0"
9
- UV_VERSION=" 0.6.4 "
8
+ UV_VERSION=" 0.6.14 "
10
9
IMAGE_USERNAME=servo_ci
11
10
12
11
16
15
cd hos_builder && wget https://cli.github.com/packages/githubcli-archive-keyring.gpg && cd -
17
16
fi
18
17
19
- if [[ ! -f " hos_commandline_tools/commandline-tools-linux-x64-${HOS_COMMANDLINE_TOOLS_VERSION} .zip" ]]
20
- then
21
- echo " Couldn't find the HarmonyOS commandline tools (version ${HOS_COMMANDLINE_TOOLS_VERSION} ). Please download manually."
22
- echo " The commandline tools can be found at https://developer.huawei.com/consumer/cn/download/"
23
- echo " Note: Currently the commandline tools are only available to developers with a mainland china huawei account."
24
- exit 1
25
- fi
26
-
27
18
# Build the helper images
28
19
docker build base -f base/Dockerfile -t servo_gha_base:latest --build-arg=USERNAME=${IMAGE_USERNAME}
29
20
docker build gh_runner -f gh_runner/Dockerfile -t " servo_gha_runner:${GITHUB_ACTIONS_RUNNER_VERSION} " \
30
21
--build-arg=USERNAME=${IMAGE_USERNAME} \
31
22
--build-arg=GITHUB_ACTIONS_RUNNER_VERSION=${GITHUB_ACTIONS_RUNNER_VERSION}
32
- docker build hos_commandline_tools -f hos_commandline_tools/Dockerfile -t " hos_commandline_tools: ${HOS_COMMANDLINE_TOOLS_VERSION} " \
23
+ docker build hos_commandline_tools -f hos_commandline_tools/Dockerfile -t " hos_commandline_tools" \
33
24
--build-arg=USERNAME=${IMAGE_USERNAME}
34
25
35
26
# Build the actual images
Original file line number Diff line number Diff line change 1
1
FROM servo_gha_base:latest
2
2
3
3
RUN mkdir -p data
4
- ADD commandline-tools-linux-x64-5.0.3.906.zip /data/commandline-tools.zip
4
+ ARG COMMANDLINE_TOOLS_PATH=https://repo.huaweicloud.com/harmonyos/ohpm/5.0.5/commandline-tools-linux-x64-5.0.5.310.zip
5
+ ADD ${COMMANDLINE_TOOLS_PATH} /data/commandline-tools.zip
5
6
RUN cd data && unzip -q commandline-tools.zip
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ COPY --from=commandline_tools /data/command-line-tools/sdk/default/openharmony/t
23
23
# Note: We could solve this via Github secrets, but that would require first auditing all
24
24
# servo workflows. I suspect that it is currently possible to extract secrets from the servo repo
25
25
# via pull requests with malicous build scripts.
26
- ADD ohos-config.tar /home/${USERNAME}/
26
+ ADD --chown=${USERNAME}:${USERNAME} ohos-config.tar /home/${USERNAME}/
27
27
# Used to authorize with the hdc device and avoid the confirmation dialog.
28
28
COPY --chown=${USERNAME}:${USERNAME} hdckey hdckey.pub /home/${USERNAME}/.harmony/
29
29
ADD hdc.tar /usr/bin/
You can’t perform that action at this time.
0 commit comments