Skip to content

Commit 33bf5b3

Browse files
committed
Include Binaryen and third-party notices in LLGo releases
1 parent 7ab6c10 commit 33bf5b3

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/create_release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
SHASUM=$PKGNAME.tar.gz.sha256
8787
rm -rf binaryen-$VERSION
8888
mv out/install binaryen-$VERSION
89+
bash scripts/llgo-copy-notices.sh binaryen-$VERSION
8990
tar -czf $TARBALL binaryen-$VERSION
9091
# on Windows, MSYS2 will strip the carriage return from CMake output
9192
cmake -E sha256sum $TARBALL > $SHASUM
@@ -184,6 +185,7 @@ jobs:
184185
SHASUM=$PKGNAME.tar.gz.sha256
185186
./alpine.sh find install/ -type f -perm -u=x -exec strip {} +
186187
mv install binaryen-$VERSION
188+
bash scripts/llgo-copy-notices.sh binaryen-$VERSION
187189
tar -czf $TARBALL binaryen-$VERSION
188190
cmake -E sha256sum $TARBALL > $SHASUM
189191
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
@@ -251,6 +253,7 @@ jobs:
251253
SHASUM=$PKGNAME.tar.gz.sha256
252254
mkdir binaryen-$VERSION
253255
cp out/bin/wasm-opt* binaryen-$VERSION/
256+
bash scripts/llgo-copy-notices.sh binaryen-$VERSION
254257
tar -czf $TARBALL binaryen-$VERSION
255258
cmake -E sha256sum $TARBALL > $SHASUM
256259
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT

‎scripts/llgo-copy-notices.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
dest="$1"
5+
cp LICENSE LLGO.md "$dest/"
6+
mkdir -p "$dest/third_party/FP16" "$dest/third_party/llvm-project/include/llvm" "$dest/third_party/googletest"
7+
cp third_party/FP16/LICENSE "$dest/third_party/FP16/"
8+
cp third_party/llvm-project/include/llvm/LICENSE.TXT "$dest/third_party/llvm-project/include/llvm/"
9+
cp third_party/googletest/LICENSE "$dest/third_party/googletest/"

0 commit comments

Comments
 (0)