Skip to content

Commit

Permalink
Add Ubuntu 18.04 lib
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Nov 3, 2018
1 parent adc7785 commit f9c5504
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ matrix:
dist: trusty
sudo: required
env: RID=linux-x64
- os: linux
dist: trusty
sudo: required
env: RID=ubuntu.18.04-x64
- os: linux
dist: trusty
sudo: required
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile.ubuntu.18.04-x64
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:18.04
WORKDIR /nativebinaries
COPY . /nativebinaries/

RUN apt update && apt -y install cmake libcurl4-openssl-dev libssl-dev pkg-config zlib1g-dev

CMD ["/bin/bash", "-c", "./build.libgit2.sh"]
4 changes: 4 additions & 0 deletions UpdateLibgit2ToSha.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ Push-Location $libgit2Directory
<TargetPath>lib\linux-x64\lib$binaryFilename.so</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</ContentWithTargetPath>
<ContentWithTargetPath Condition="Exists('`$(MSBuildThisFileDirectory)\..\..\runtimes\ubuntu.18.04-x64\native\lib$binaryFilename.so')" Include="`$(MSBuildThisFileDirectory)\..\..\runtimes\ubuntu.18.04-x64\native\lib$binaryFilename.so">
<TargetPath>lib\ubuntu.18.04-x64\lib$binaryFilename.so</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</ContentWithTargetPath>
<ContentWithTargetPath Condition="Exists('`$(MSBuildThisFileDirectory)\..\..\runtimes\rhel-x64\native\lib$binaryFilename.so')" Include="`$(MSBuildThisFileDirectory)\..\..\runtimes\rhel-x64\native\lib$binaryFilename.so">
<TargetPath>lib\rhel-x64\lib$binaryFilename.so</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
4 changes: 4 additions & 0 deletions nuget.package/build/net461/LibGit2Sharp.NativeBinaries.props
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<TargetPath>lib\linux-x64\libgit2-8e0b172.so</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</ContentWithTargetPath>
<ContentWithTargetPath Condition="Exists('$(MSBuildThisFileDirectory)\..\..\runtimes\ubuntu.18.04-x64\native\libgit2-8e0b172.so')" Include="$(MSBuildThisFileDirectory)\..\..\runtimes\ubuntu.18.04-x64\native\libgit2-8e0b172.so">
<TargetPath>lib\ubuntu.18.04-x64\libgit2-8e0b172.so</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</ContentWithTargetPath>
<ContentWithTargetPath Condition="Exists('$(MSBuildThisFileDirectory)\..\..\runtimes\rhel-x64\native\libgit2-8e0b172.so')" Include="$(MSBuildThisFileDirectory)\..\..\runtimes\rhel-x64\native\libgit2-8e0b172.so">
<TargetPath>lib\rhel-x64\libgit2-8e0b172.so</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down

0 comments on commit f9c5504

Please sign in to comment.