Skip to content

Commit 53fd010

Browse files
committed
build: use ${HOME} for local directories in workflow
1 parent 8bdf6e8 commit 53fd010

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ jobs:
136136
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
137137
--mount type=bind,source=${GITHUB_WORKSPACE},target=/workspace,readonly \
138138
--mount type=bind,source=${{ runner.temp }},target=/tmp-runner \
139-
--mount type=bind,source=/home/mhx/github-ccache,target=/ccache \
140-
--mount type=bind,source=/home/mhx/github-local,target=/local \
139+
--mount type=bind,source=${HOME}/github-ccache,target=/ccache \
140+
--mount type=bind,source=${HOME}/github-local,target=/local \
141141
--mount type=bind,source=/mnt/opensource/artifacts/dwarfs,target=/artifacts \
142142
--env BUILD_TYPE=clang-release-ninja-source-notest \
143143
--env BUILD_ARCH=amd64 \
@@ -227,8 +227,8 @@ jobs:
227227
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
228228
--mount type=bind,source=${GITHUB_WORKSPACE},target=/workspace,readonly \
229229
--mount type=bind,source=${{ runner.temp }},target=/tmp-runner \
230-
--mount type=bind,source=/home/mhx/github-ccache,target=/ccache \
231-
--mount type=bind,source=/home/mhx/github-local,target=/local \
230+
--mount type=bind,source=${HOME}/github-ccache,target=/ccache \
231+
--mount type=bind,source=${HOME}/github-local,target=/local \
232232
--mount type=bind,source=/mnt/opensource/artifacts/dwarfs,target=/artifacts \
233233
--env BUILD_FROM_TARBALL=1 \
234234
--env BUILD_TYPE=${{ matrix.build_type }} \
@@ -349,8 +349,8 @@ jobs:
349349
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
350350
--mount type=bind,source=${GITHUB_WORKSPACE},target=/workspace,readonly \
351351
--mount type=bind,source=${{ runner.temp }},target=/tmp-runner \
352-
--mount type=bind,source=/home/mhx/github-ccache,target=/ccache \
353-
--mount type=bind,source=/home/mhx/github-local,target=/local \
352+
--mount type=bind,source=${HOME}/github-ccache,target=/ccache \
353+
--mount type=bind,source=${HOME}/github-local,target=/local \
354354
--mount type=bind,source=/mnt/opensource/artifacts/dwarfs,target=/artifacts \
355355
--env BUILD_TYPE=${{ matrix.build_type }} \
356356
--env BUILD_ARCH=${{ matrix.arch }} \

0 commit comments

Comments
 (0)