Skip to content

Commit

Permalink
chore: download noctilucent instead of building it (#26258)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr committed Jul 7, 2023
1 parent d316af7 commit a4b9444
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/aws-cdk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ lib/vendor/noctilucent/*
.DS_Store

junit.xml
tmp/
1 change: 1 addition & 0 deletions packages/aws-cdk/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ junit.xml

generate.sh
lib/vendor/noctilucent/Dockerfile
tmp/
11 changes: 8 additions & 3 deletions packages/aws-cdk/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ HERE
# Download noctilucent wasm-pack build
NOCTILUCENT_VERSION=0.1.2
PACK_URL=https://github.com/iph/noctilucent/releases/download/v${NOCTILUCENT_VERSION}/wasm-pack.zip
zipfile=$PWD/tmp/noctilucent-wasm-${NOCTILUCENT_VERSION}.zip
outdir=lib/vendor/noctilucent

mkdir -p $outdir
(cd $outdir && curl -sSfLo wasm-pack.zip "$PACK_URL" && unzip -o wasm-pack.zip)
mkdir -p tmp
if [[ ! -f "$zipfile" ]]; then
curl -sSfLo "$zipfile" "$PACK_URL"
fi

(cd $outdir && unzip -qo $zipfile)

# Don't need these files
rm $outdir/{.gitignore,README.md,package.json,wasm-pack.zip}
rm -f $outdir/{.gitignore,README.md,package.json}

0 comments on commit a4b9444

Please sign in to comment.