Skip to content

Commit

Permalink
fix cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Oct 29, 2024
1 parent ee73a6e commit 92a3870
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ jobs:
chmod +x ./python-wasm-sdk.sh
bash -c "./python-wasm-sdk.sh"
- name: Clean up
run: |
[ -f /tmp/sdk/emsdk.tar ] && rm /tmp/sdk/emsdk.tar
- name: Upload sdk to Github artifacts
uses: actions/upload-artifact@v3.1.1
with:
Expand Down
8 changes: 4 additions & 4 deletions python-wasi-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ END

mkdir -p src build ${SDKROOT}/devices/emsdk ${SDKROOT}/prebuilt/emsdk

if [ -f /tmp/sdk/emsdk.tar ]
if [ -f /tmp/emsdk.tar ]
then
echo "
Expand All @@ -178,7 +178,7 @@ END
"
pushd /
tar xfp /tmp/sdk/emsdk.tar
tar xfp /tmp/emsdk.tar
mkdir -p ${SDKROOT}/src ${SDKROOT}/build
popd
fi
Expand All @@ -188,7 +188,7 @@ END

echo " ---------- building cpython wasm support ${PYBUILD} ${CIVER} -----------" 1>&2

if [ -f /tmp/sdk/emsdk.tar ]
if [ -f /tmp/emsdk.tar ]
then
echo " using cached cpython-build-emsdk-deps"
else
Expand All @@ -209,7 +209,7 @@ END
--exclude=${SDKROOT}/sources.* \
--exclude=${SDKROOT}/build \
--exclude=${SDKROOT}/src \
-cpR $SDKROOT > /tmp/sdk/emsdk.tar
-cpR $SDKROOT > /tmp/emsdk.tar

date "+%d-%m-%4Y" > /tmp/sdk/emsdk.version
popd
Expand Down
8 changes: 4 additions & 4 deletions python-wasm-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ END

mkdir -p src build ${SDKROOT}/devices/emsdk ${SDKROOT}/prebuilt/emsdk

if [ -f /tmp/sdk/emsdk.tar ]
if [ -f /tmp/emsdk.tar ]
then
echo "
Expand All @@ -178,7 +178,7 @@ END
"
pushd /
tar xfp /tmp/sdk/emsdk.tar
tar xfp /tmp/emsdk.tar
mkdir -p ${SDKROOT}/src ${SDKROOT}/build
popd
fi
Expand All @@ -188,7 +188,7 @@ END

echo " ---------- building cpython wasm support ${PYBUILD} ${CIVER} -----------" 1>&2

if [ -f /tmp/sdk/emsdk.tar ]
if [ -f /tmp/emsdk.tar ]
then
echo " using cached cpython-build-emsdk-deps"
else
Expand All @@ -209,7 +209,7 @@ END
--exclude=${SDKROOT}/sources.* \
--exclude=${SDKROOT}/build \
--exclude=${SDKROOT}/src \
-cpR $SDKROOT > /tmp/sdk/emsdk.tar
-cpR $SDKROOT > /tmp/emsdk.tar

date "+%d-%m-%4Y" > /tmp/sdk/emsdk.version
popd
Expand Down

0 comments on commit 92a3870

Please sign in to comment.