Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vamolessa authored Nov 3, 2024
1 parent ddd1297 commit b4a6489
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,18 @@ cd out/Debug
cmake ../..
make # -j N for N-way parallel build

echo "======================================================================================"
echo "====================================================================================== ls ."
echo "======================================================================================"

ls

echo "======================================================================================"
echo "====================================================================================== find -name libdawn_native"
echo "======================================================================================"

find ../.. -type f -name 'libdawn_native.*'

echo "======================================================================================"
echo "======================================================================================"
echo "======================================================================================"

# Zip build output

cd ../..

mkdir dawn-$ARCH

cp out/Debug/gen/include/dawn/webgpu.h dawn-$ARCH
cp out/Debug/webgpu_dawn.so dawn-$ARCH
cp out/Debug/tint dawn-$ARCH
cp out/Debug/src/dawn/native/libdawn_native.a dawn-$ARCH
cp out/Debug/Makefile dawn-$ARCH
#cp out/Debug/src/dawn/native/libdawn_native.dylib dawn-$ARCH

rm -f dawn-mac-$ARCH-$BUILD_DATE.zip
zip -9 -r dawn-mac-$ARCH-$BUILD_DATE.zip dawn-$ARCH || echo "could not zip artifacts"
cp dawn-mac-$ARCH-$BUILD_DATE.zip .. || echo "could not copy zip artifacts to root dir"
cp -f dawn-mac-$ARCH-$BUILD_DATE.zip .. || echo "could not copy zip artifacts to root dir"

0 comments on commit b4a6489

Please sign in to comment.