File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 if [ ! -f "${dxc_js}" ] || [ ! -f "${dxc_wasm}" ]; then
8484 mkdir -p "${dxc_dir}"
8585 curl -L --fail "${DXC_WASM_PREBUILT_URL}" -o "${RUNNER_TEMP}/dxc-wasm-prebuilt.zip"
86- python3 - "${RUNNER_TEMP}/dxc-wasm-prebuilt.zip" "${dxc_dir}" <<'PY'
87- import sys
88- import zipfile
89-
90- zip_path = sys.argv[1]
91- dst_dir = sys.argv[2]
92-
93- with zipfile.ZipFile(zip_path) as archive :
94- archive.extractall(dst_dir)
95- PY
86+ python3 -c "import sys,zipfile; zipfile.ZipFile(sys.argv[1]).extractall(sys.argv[2])" \
87+ "${RUNNER_TEMP}/dxc-wasm-prebuilt.zip" "${dxc_dir}"
9688 fi
9789 test -f "${dxc_js}"
9890 test -f "${dxc_wasm}"
203195 if [ ! -f "${dxc_js}" ] || [ ! -f "${dxc_wasm}" ]; then
204196 mkdir -p "${dxc_dir}"
205197 curl -L --fail "${DXC_WASM_PREBUILT_URL}" -o "${RUNNER_TEMP}/dxc-wasm-prebuilt.zip"
206- python3 - "${RUNNER_TEMP}/dxc-wasm-prebuilt.zip" "${dxc_dir}" <<'PY'
207- import sys
208- import zipfile
209-
210- zip_path = sys.argv[1]
211- dst_dir = sys.argv[2]
212-
213- with zipfile.ZipFile(zip_path) as archive :
214- archive.extractall(dst_dir)
215- PY
198+ python3 -c "import sys,zipfile; zipfile.ZipFile(sys.argv[1]).extractall(sys.argv[2])" \
199+ "${RUNNER_TEMP}/dxc-wasm-prebuilt.zip" "${dxc_dir}"
216200 fi
217201 test -f "${dxc_js}"
218202 test -f "${dxc_wasm}"
You can’t perform that action at this time.
0 commit comments