Skip to content

Commit

Permalink
Update workfow
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxRev-Dev committed Jan 25, 2024
1 parent ced3ea1 commit 437648f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,26 @@ Provides a minimal setup without requirements to install heavy [GDAL binaries](h
## **How to use**

1. Install core package - [MaxRev.Gdal.Core](https://www.nuget.org/packages/MaxRev.Gdal.Core/)
```powershell
Install-Package MaxRev.Gdal.Core
```
2. Install [libraries](#packages-nuget) for your runtime. You can install one of them or all with no conflicts.
The
```powershell
```shell
dotnet add package MaxRev.Gdal.Core
```
2. Install [libraries](#packages-nuget) for your runtime. You can install one of them or all with no conflicts.
There is no requirement to install all of them or GDAL binaries. If you work on Windows and Linux you can skip MacOS package and vice versa.
```shell
# windows supported only for x64
Install-Package MaxRev.Gdal.WindowsRuntime.Minimal
dotnet add package MaxRev.Gdal.WindowsRuntime.Minimal

# install linux bundle which references both arm64 and x64 binaries
Install-Package MaxRev.Gdal.LinuxRuntime.Minimal
dotnet add package MaxRev.Gdal.LinuxRuntime.Minimal
# or install a specific runtime
Install-Package MaxRev.Gdal.LinuxRuntime.Minimal.arm64
Install-Package MaxRev.Gdal.LinuxRuntime.Minimal.x64
dotnet add package MaxRev.Gdal.LinuxRuntime.Minimal.arm64
dotnet add package MaxRev.Gdal.LinuxRuntime.Minimal.x64

# install macos bundle which references both arm64 and x64 binaries
Install-Package MaxRev.Gdal.MacosRuntime.Minimal
dotnet add package MaxRev.Gdal.MacosRuntime.Minimal
# or install a specific runtime
Install-Package MaxRev.Gdal.MacosRuntime.Minimal.arm64
Install-Package MaxRev.Gdal.MacosRuntime.Minimal.x64
dotnet add package MaxRev.Gdal.MacosRuntime.Minimal.arm64
dotnet add package MaxRev.Gdal.MacosRuntime.Minimal.x64
```
3. Initialize libraries in runtime
```csharp
Expand Down
5 changes: 5 additions & 0 deletions ci/Dockerfile.unix.test
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@ COPY tests /build/tests

ARG BUILD_NUMBER_TAIL
ARG BUILD_ARCH

RUN set -a && . /tmp/gdal-netcore-env && set +a; \
cd /build/tests && \
dotnet nuget add source /build/nuget --name local.ci || "failed to add source"

ENTRYPOINT set -a && . /tmp/gdal-netcore-env && set +a; \
make -f test-makefile $(cat /tmp/gdal-netcore-arch) BUILD_NUMBER_TAIL=$BUILD_NUMBER_TAIL BUILD_ARCH=$BUILD_ARCH

0 comments on commit 437648f

Please sign in to comment.