diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml new file mode 100644 index 0000000..08c0215 --- /dev/null +++ b/.github/workflows/dotnet-core.yml @@ -0,0 +1,29 @@ +name: .NET Core CI + +on: [push, pull_request] + +jobs: + test: + name: .Net Core ${{ matrix.framework }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + framework: ['2.1', '3.1'] + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v2.2.0 + + - name: Setup .NET Core + uses: actions/setup-dotnet@v1.5.0 + with: + dotnet-version: ${{ matrix.framework }} + + - if: matrix.os == 'ubuntu-latest' + name: Install Linux packages + run: | + ldd /usr/bin/curl + + - name: Tests + run: dotnet test --framework netcoreapp${{ matrix.framework }} diff --git a/CurlNet/CurlNative.cs b/CurlNet/CurlNative.cs index 9cbac12..98055c6 100644 --- a/CurlNet/CurlNative.cs +++ b/CurlNet/CurlNative.cs @@ -9,7 +9,7 @@ namespace CurlNet { internal static class CurlNative { - private const string Libcurl = "libcurl"; + private const string Libcurl = "curl"; [DllImport(Libcurl, EntryPoint = "curl_global_init")] internal static extern CurlCode GlobalInit(CurlGlobal flags);