Skip to content

Commit cc02317

Browse files
[ci] chmod only when cache hit
1 parent bf8e1b4 commit cc02317

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ jobs:
150150
xcodebuild -version
151151
152152
- uses: actions/cache/restore@v3
153+
id: build-cache
153154
with:
154155
path: build-cache
155156
key: ${{ steps.cache_key.outputs.SCCACHE_KEY }}
@@ -165,10 +166,11 @@ jobs:
165166
${{ github.workspace }}/host-toolchain-sdk \
166167
${{ github.workspace }}/dist-toolchain-sdk
167168
169+
- run: chmod 777 -R ./build-cache
170+
if: ${{ steps.build-cache.outputs.cache-hit == 'true' }}
168171
- name: Build ${{ matrix.target }} installable archive on Docker container
169172
if: ${{ matrix.container != null }}
170173
run: |
171-
chmod 777 -R ${{ github.workspace }}/build-cache
172174
docker volume create oss-swift-package
173175
docker run --name swiftwasm-ci-buildbot \
174176
--security-opt=no-new-privileges \

0 commit comments

Comments
 (0)