diff --git a/.cirrus.yml b/.cirrus.yml index 3c92edcb..c0cab564 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -27,15 +27,15 @@ linux_arm64_alpine_task: arm_container: image: mcr.microsoft.com/dotnet/sdk:7.0-alpine setup_alpine_script: apk add --no-cache curl bash gzip - patch_cs_proj_script: | - # cat src/PactNet/PactNet.csproj | grep musl - sed -Ei "s|aarch64\\\libpact_ffi.so|aarch64-musl\\\libpact_ffi.so|" src/PactNet/PactNet.csproj - cat src/PactNet/PactNet.csproj | grep musl + # patch_cs_proj_script: | + # # cat src/PactNet/PactNet.csproj | grep musl + # sed -Ei "s|aarch64\\\libpact_ffi.so|aarch64-musl\\\libpact_ffi.so|" src/PactNet/PactNet.csproj + # cat src/PactNet/PactNet.csproj | grep musl << : *BUILD_TEST_TASK_TEMPLATE linux_amd64_alpine_task: container: image: mcr.microsoft.com/dotnet/sdk:7.0-alpine setup_alpine_script: apk add --no-cache curl bash gzip - patch_cs_proj_script: sed -Ei "s|x86_64\\\libpact_ffi.so|x86_64-musl\\\libpact_ffi.so|" src/PactNet/PactNet.csproj + # patch_cs_proj_script: sed -Ei "s|x86_64\\\libpact_ffi.so|x86_64-musl\\\libpact_ffi.so|" src/PactNet/PactNet.csproj << : *BUILD_TEST_TASK_TEMPLATE \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42b9cded..3afd594a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,9 +62,9 @@ jobs: if: matrix.alpine != true run: dotnet test --no-build --verbosity normal - - name: Patch PactNet.csproj - if: matrix.alpine == true - run: sed -Ei "s|${{ matrix.arch }}\\\libpact_ffi.so|${{ matrix.arch }}-musl\\\libpact_ffi.so|" src/PactNet/PactNet.csproj + # - name: Patch PactNet.csproj + # if: matrix.alpine == true + # run: sed -Ei "s|${{ matrix.arch }}\\\libpact_ffi.so|${{ matrix.arch }}-musl\\\libpact_ffi.so|" src/PactNet/PactNet.csproj - name: test linux amd64 musl if: matrix.alpine == true && matrix.arch == 'x86_64' diff --git a/src/PactNet/PactNet.csproj b/src/PactNet/PactNet.csproj index 87a39245..4147e846 100644 --- a/src/PactNet/PactNet.csproj +++ b/src/PactNet/PactNet.csproj @@ -16,7 +16,10 @@ False False True - True + True + True + True + True True True @@ -33,14 +36,28 @@ libpact_ffi.so runtimes/linux-arm64/native true - PreserveNewest + PreserveNewest false libpact_ffi.so runtimes/linux-x64/native true - PreserveNewest + PreserveNewest + false + + + libpact_ffi.so + runtimes/linux-arm64-musl/native + true + PreserveNewest + false + + + libpact_ffi.so + runtimes/linux-x64-musl/native + true + PreserveNewest false