-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes it possible to test formatting changes using CSharpier. To test formatting, both Rust and Dotnet must be installed in the same docker image. This is because `--library` mode runs `cargo metadata` command, and formatting runs `dotnet-csharpier` command. Signed-off-by: Kristupas Antanavicius <kristupas.antanavicius@nordsec.com>
- Loading branch information
Showing
5 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/NordSecurity/uniffi-bindgen-cs | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && apt-get clean | ||
|
||
RUN dotnet tool install -g csharpier | ||
RUN echo 'export PATH="$PATH:/root/.dotnet/tools"' >> /root/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
all: build generate test | ||
|
||
build: | ||
./docker_build.sh | ||
./build.sh | ||
|
||
generate: | ||
./generate_bindings.sh | ||
|
||
test: | ||
./docker_test_bindings.sh | ||
./test_bindings.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.