Skip to content

Commit a47c91f

Browse files
committed
Bump v0.25.0-2
Update uniffi-bindgen-cpp to v0.2.2+v0.25.0 Signed-off-by: Kristupas Antanavičius <[email protected]>
1 parent cdb2a54 commit a47c91f

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN cargo search --limit 0
77
RUN cd /project && cargo install --path uniffi-bindgen
88
RUN cargo install uniffi-bindgen-cs --tag v0.7.0+v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-cs
99
RUN cargo install uniffi-bindgen-go --tag v0.2.0+v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-go
10-
RUN cargo install uniffi-bindgen-cpp --tag v0.1.0+v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-cpp
10+
RUN cargo install uniffi-bindgen-cpp --tag v0.2.2+v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-cpp
1111

1212
FROM rust:1.72-bullseye
1313
COPY --from=builder /usr/local/cargo/bin/uniffi-bindgen /bin

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ shows which versions of each generator are inside the docker image.
3939

4040
| Docker image | uniffi-rs version | uniffi-bindgen-cs version | uniffi-bindgen-go version | uniffi-bindgen-cpp version |
4141
|------------------------|-----------------------|---------------------------|---------------------------|----------------------------|
42+
| v0.25.0-2 | v0.3.0+0.25.0 | v0.7.0+v0.25.0 | v0.2.0+v0.25.0 | **v0.2.2+v0.25.0** |
4243
| v0.25.0-1 | **v0.3.0+0.25.0** | **v0.7.0+v0.25.0** | **v0.2.0+v0.25.0** | **v0.1.0+v0.25.0** |
4344
| v0.23.0-6 | v0.23.0-3 | v0.4.0+v0.23.0 | v0.1.5+v0.23.0 | not present |
4445
| v0.23.0-5 | v0.23.0-3 | **v0.4.0+v0.23.0** | **v0.1.5+v0.23.0** | not present |

compatibility-test/setup_bindings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ source "$SCRIPT_DIR/env.sh"
1010
docker run --rm \
1111
--volume $ROOT_DIR:/workspace \
1212
--workdir /workspace/compatibility-test \
13-
ghcr.io/nordsecurity/uniffi-generators:v0.25.0-1 \
13+
generators:test \
1414
/bin/bash /workspace/compatibility-test/setup_bindings_inner.sh

compatibility-test/setup_test_source.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/bash
22
set -euo pipefail
3-
set +x
43

54
SCRIPT_DIR="${SCRIPT_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )}"
65
source "$SCRIPT_DIR/env.sh"
76

7+
# Disable logging commands to make the file download logs easy to read
8+
set +x
9+
810
# XD use docker to rm tmp directory as root. The tests run in Docker container, and create files
911
# in tmp directory as root.
1012
docker run --rm \
@@ -44,8 +46,7 @@ download_file "$GITHUB_URL/binding_tests/coverall_test.go" "$TMP_DIR/go"
4446
download_file "$GITHUB_URL/binding_tests/go.mod" "$TMP_DIR/go"
4547
download_file "$GITHUB_URL/binding_tests/go.sum" "$TMP_DIR/go"
4648

47-
# TODO use tagged version
48-
GITHUB_VERSION="f47dc471643f9d079f2cab03df68adf6b6d3d0b3"
49+
GITHUB_VERSION="v0.2.2+v0.25.0"
4950
GITHUB_URL="https://raw.githubusercontent.com/NordSecurity/uniffi-bindgen-cpp/$GITHUB_VERSION"
5051
download_file "$GITHUB_URL/cpp-tests/tests/coverall/main.cpp" "$TMP_DIR/cpp/coverall"
5152
download_file "$GITHUB_URL/cpp-tests/tests/include/test_common.hpp" "$TMP_DIR/cpp/include"

compatibility-test/test_cpp.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,13 @@ function cpp_docker() {
1313
$*
1414
}
1515

16-
cpp_docker g++ -std=c++20 coverall/main.cpp -I. -Iinclude -o test_coverall
16+
COMPILE_CMD=(
17+
g++ -o test_coverall
18+
-std=c++20
19+
-I. -Iinclude
20+
-L /workspace/target/debug -lcompatibility_test -lpthread
21+
coverall/main.cpp coverall.cpp
22+
)
23+
24+
cpp_docker ${COMPILE_CMD[@]}
1725
cpp_docker ./test_coverall

test_generators.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
set -euo pipefail
33

4+
SCRIPT_DIR="${SCRIPT_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )}"
45

56
# Run compatibility tests for all generators
67
# You can either run this script with -bd flags
@@ -57,7 +58,7 @@ set -x
5758
function build_docker() {
5859
docker run --rm \
5960
-v $HOME/.cargo/registry:/usr/local/cargo/registry \
60-
-v $ROOT_DIR:/workspace \
61+
-v $SCRIPT_DIR:/workspace \
6162
-w /workspace \
6263
rust:1.72-bullseye \
6364
$*
@@ -98,9 +99,7 @@ if [[ -z "$GENERATOR" || "$GENERATOR" = "go" ]]; then
9899
fi
99100

100101
if [[ -z "$GENERATOR" || "$GENERATOR" = "cpp" ]]; then
101-
:
102-
# TODO currently does not work without creating a new release
103-
# ./compatibility-test/test_cpp.sh
102+
./compatibility-test/test_cpp.sh
104103
fi
105104

106105
echo Compatibility tests passed!

0 commit comments

Comments
 (0)