Skip to content

Commit c5aaff5

Browse files
committed
Add zipnote to compare archives
1 parent 8ebe66e commit c5aaff5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
mkdir opt
5050
cd opt
5151
unzip ../layer_diffoscope_${{ matrix.runtime }}.zip
52+
ldd bin/* || true
53+
ldd lib/* || true
5254
cd ..
5355
ls -l
5456
docker run -e DOCKER_LAMBDA_DEBUG=1 --rm -v "$PWD":/var/task:ro,delegated -v "$PWD"/opt/:/opt:ro,delegated lambci/lambda:${{ matrix.runtime }} tests.run 2> /tmp/test_results

make_layer.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22

3-
# TODO add zipnote to bin/ (zip package)
43
# TODO add libarchive-tools
54
# jsondiff: would crash on Chrome extensions (manifest.json is not a valid JSON)
65

@@ -16,11 +15,13 @@ docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-$RUNTIME \
1615
cd ${PKG_DIR} && \
1716
yum --assumeyes install vim-common && \
1817
cp --verbose /usr/bin/xxd bin/ && \
18+
cp --verbose /usr/bin/zipnote bin/ && \
1919
yum --assumeyes install libarchive && \
2020
cp --verbose /usr/lib64/libarchive.so.13 lib/libarchive.so && \
2121
cp --verbose /usr/lib64/libarchive.so.13 lib/libarchive.so.13 && \
2222
cp --verbose /usr/lib64/liblzo2.so.2 lib/ && \
23-
cp --verbose /usr/lib64/libmagic.so.1 lib/ && \
23+
([[ $RUNTIME == 'python3.8' ]] && cp --verbose /usr/lib64/libmagic.so.1 lib/) && \
24+
([[ $RUNTIME == 'python3.8' ]] && cp --verbose /usr/lib64/libcrypto.so.10 lib/) && \
2425
chown --verbose $(id --user):$(id --group) lib/* \
2526
"
2627
docker run --user $(id --user):$(id --group) --rm -v $(pwd):/foo -w /foo lambci/lambda:build-$RUNTIME \

0 commit comments

Comments
 (0)