Skip to content

Commit

Permalink
move cmakejs to devdeps (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK authored Aug 7, 2023
1 parent b57ed77 commit 583d69c
Show file tree
Hide file tree
Showing 11 changed files with 501 additions and 214 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@ jobs:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
linux-musl-armv7:
runs-on: ubuntu-20.04 # latest
strategy:
fail-fast: false
matrix:
image:
- alpine-3.16-x64
steps:
- name: Install qemu/docker
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Checkout Sources
uses: actions/checkout@v2
with:
submodules: true
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
export AWS_CRT_ARCH=armv7
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-alpine-3.16-armv7 build -p ${{ env.PACKAGE_NAME }}
linux-compiler-compat:
runs-on: ubuntu-20.04 # latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion continuous-delivery/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mkdir $UNZIP
tar -xf aws-crt-$CURRENT_TAG.tgz -C $UNZIP
PACK_FILE_SIZE_KB=$(du -sk $UNZIP | awk '{print $1}')
echo "Current package size: ${PACK_FILE_SIZE_KB}"
if expr $PACK_FILE_SIZE_KB \> "$((24000))" ; then
if expr $PACK_FILE_SIZE_KB \> "$((25000))" ; then
# the package size is too large, return -1
echo "Package size is too large!"
exit -1
Expand Down
13 changes: 13 additions & 0 deletions continuous-delivery/test-deploy-source.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 0.2
phases:
install:
runtime-versions:
nodejs: 18
pre_build:
commands:
- apt-get update -y && apt-get install -y cmake libz-dev libssl-dev
- cd aws-crt-nodejs
- bash ./continuous-delivery/update-version.sh
build:
commands:
- node ./scripts/build --source_download
126 changes: 46 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,27 @@
"@types/uuid": "^3.4.8",
"@types/ws": "^7.4.7",
"aws-sdk": "^2.848.0",
"cmake-js": "^6.3.2",
"https-proxy-agent": "^5.0.1",
"jest": "^27.2.1",
"jest-puppeteer": "^5.0.4",
"jest-runtime": "^27.2.1",
"puppeteer": "^3.3.0",
"tar": "^6.1.11",
"ts-jest": "^27.0.5",
"typedoc": "^0.22.18",
"typedoc-plugin-merge-modules": "^3.1.0",
"typescript": "^4.7.4",
"uuid": "^8.3.2",
"yargs": "^17.2.1"
"yargs": "^17.2.1",
"cmake-js": "^6.3.2",
"tar": "^6.1.11"
},
"dependencies": {
"@aws-sdk/util-utf8-browser": "^3.109.0",
"@httptoolkit/websocket-stream": "^6.0.0",
"axios": "^0.24.0",
"buffer": "^6.0.3",
"cmake-js": "^6.3.2",
"crypto-js": "^4.0.0",
"mqtt": "^4.3.7",
"process": "^0.11.10",
"tar": "^6.1.11"
"process": "^0.11.10"
}
}
Loading

0 comments on commit 583d69c

Please sign in to comment.