gpu-dawn: CI: upload headers.json + tarball
Fixes hexops/mach#171 Helps hexops/mach#109 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
262422edde
commit
028b7d8034
5 changed files with 69 additions and 24 deletions
24
gpu-dawn/dev/bundle-release.sh
Executable file
24
gpu-dawn/dev/bundle-release.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
set -exuo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"/..
|
||||
|
||||
# Prepare the `out/` directory that we will bundle.
|
||||
rm -rf out/
|
||||
mkdir out/
|
||||
cp -R libs/dawn/include out/
|
||||
cp -R libs/dawn/out/Debug/gen/include/* out/include/
|
||||
cp libs/dawn/LICENSE out/
|
||||
|
||||
# Bundle headers.json.gz
|
||||
pushd out
|
||||
python ../dev/dir_to_json.py > ../headers.json
|
||||
popd
|
||||
gzip -9 headers.json
|
||||
|
||||
# Copy the binary into the out/ directory
|
||||
cp zig-out/lib/libdawn.a out/
|
||||
|
||||
# Create out.tar.gz bundle
|
||||
pushd out
|
||||
tar -czvf ../out.tar.gz .
|
||||
popd
|
||||
Loading…
Add table
Add a link
Reference in a new issue