not tarring

This commit is contained in:
Motiejus Jakštys 2024-11-06 15:46:07 +02:00
parent 77128e14c9
commit 2305f1030e
2 changed files with 5 additions and 9 deletions

View File

@ -7,7 +7,7 @@ binary blobs. [Forum post goes with this][1].
Clone zig and prune binary files from history:
```
$ git clone --reference zig --dissociate https://github.com/ziglang/zig zig-nobinaries
$ git clone https://github.com/ziglang/zig zig-nobinaries
$ cd zig-nobinaries
$ git filter-repo --prune-empty=never --prune-degenerate never --invert-paths --path-glob 'stage1/zig1.wasm*' --path stage1/zig1.c
```

12
run
View File

@ -125,11 +125,10 @@ step10() {
local TO_="$BOUNDFN_"
echo "Generating zig1.wasm.zst for $TO_"
rm -fr "../zig-$TO_"
git clone . "../zig-$TO_"
git archive --prefix=zig-$TO_/ $TO | tar -C .. -x
{
pushd "../zig-$TO_"
git checkout $TO
cp "$OLDPWD/stage1/zig1.wasm.zst" stage1/
patch -p1 <"$HERE/0.10.0-675-g9d93b2ccf1-TypeOf-hack.patch"
fullbuild
@ -146,11 +145,10 @@ step20() {
local TO_="$C_AARCH64_"
echo "Generating zig1.wasm.zst for $C_AARCH64_"
rm -fr "../zig-$TO_"
git clone . "../zig-$TO_"
git archive --prefix=zig-$TO_/ $TO | tar -C .. -x
{
pushd "../zig-$TO_"
git checkout $TO
zstd -cd ../zig-$FROM_/stage1/zig1.wasm.zst >stage1/zig1.wasm
fullbuild
build/stage3/bin/zig build update-zig1
@ -167,11 +165,10 @@ step30() {
echo "Updating zig1.wasm from $FROM_ -> $TO_ in ../zig-$TO_"
rm -fr "../zig-$TO_"
git clone . "../zig-$TO_"
git archive --prefix=zig-$TO_/ $TO | tar -C .. -x
{
pushd "../zig-$TO_"
git checkout $TO
patch -p1 <"$HERE/0.10.0-747-g7b2a936173-CallOptions.patch"
"../zig-$FROM_/build/stage3/bin/zig" build --zig-lib-dir lib update-zig1
popd
@ -187,11 +184,10 @@ step40() {
echo "Updating zig1.wasm from $FROM_ -> $TO_ in ../zig-$TO_"
rm -fr "../zig-$TO_"
git clone . "../zig-$TO_"
git archive --prefix=zig-$TO_/ $TO | tar -C .. -x
{
pushd "../zig-$TO_"
git checkout $TO
cp ../zig-$FROM_/stage1/zig1.wasm stage1/zig1.wasm
fullbuild
build/stage3/bin/zig build update-zig1