Skip to content

Commit c9c9d68

Browse files
committed
split gmp/mpfr
1 parent 1832853 commit c9c9d68

File tree

1 file changed

+30
-16
lines changed

1 file changed

+30
-16
lines changed

.github/workflows/test-nuget.yml

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
MPFR_NUGET_VERSION: 4.2.1-preview.2
1616

1717
jobs:
18-
test:
18+
gmp:
1919
strategy:
2020
matrix:
2121
include:
@@ -28,24 +28,38 @@ jobs:
2828
runs-on: ${{ matrix.runs-on }}
2929
steps:
3030
- uses: actions/checkout@v4
31-
# GMP
3231
- name: Configure NuGet Source
3332
run: dotnet nuget add source ${{ env.NUGET_REGISTRY }} --name ProGet
3433

35-
# - name: Download GMP Native NuGet
36-
# run: |
37-
# cd src/Sdcb.Arithmetic.Gmp.Tests
38-
# dotnet add package Sdcb.Arithmetic.Gmp.runtime.${{ matrix.os }}-${{ matrix.arch }} -v ${{ env.GMP_NUGET_VERSION }} --no-restore
39-
# cat Sdcb.Arithmetic.Gmp.Tests.csproj
40-
# - name: DotNet Build for GMP
41-
# run: |
42-
# cd src/Sdcb.Arithmetic.Gmp.Tests
43-
# dotnet build -c Release --runtime ${{ matrix.os }}-${{ matrix.arch }}
44-
# - name: Test GMP
45-
# run: |
46-
# cd src/Sdcb.Arithmetic.Gmp.Tests
47-
# dotnet test -c Release --no-build --runtime ${{ matrix.os }}-${{ matrix.arch }}
48-
# MPFR
34+
- name: Download GMP Native NuGet
35+
run: |
36+
cd src/Sdcb.Arithmetic.Gmp.Tests
37+
dotnet add package Sdcb.Arithmetic.Gmp.runtime.${{ matrix.os }}-${{ matrix.arch }} -v ${{ env.GMP_NUGET_VERSION }} --no-restore
38+
cat Sdcb.Arithmetic.Gmp.Tests.csproj
39+
- name: DotNet Build for GMP
40+
run: |
41+
cd src/Sdcb.Arithmetic.Gmp.Tests
42+
dotnet build -c Release --runtime ${{ matrix.os }}-${{ matrix.arch }}
43+
- name: Test GMP
44+
run: |
45+
cd src/Sdcb.Arithmetic.Gmp.Tests
46+
dotnet test -c Release --no-build --runtime ${{ matrix.os }}-${{ matrix.arch }}
47+
48+
mpfr:
49+
strategy:
50+
matrix:
51+
include:
52+
- { os: win, arch: x64, runs-on: 'windows-latest' }
53+
- { os: win, arch: x86, runs-on: 'windows-latest' }
54+
- { os: linux, arch: x64, runs-on: 'ubuntu-latest' }
55+
- { os: linux, arch: arm64, runs-on: 'ubuntu-24.04-arm' }
56+
- { os: osx, arch: arm64, runs-on: 'macos-latest' }
57+
- { os: osx, arch: x64, runs-on: 'macos-13' }
58+
runs-on: ${{ matrix.runs-on }}
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: Configure NuGet Source
62+
run: dotnet nuget add source ${{ env.NUGET_REGISTRY }} --name ProGet
4963
- name: Download MPFR Native NuGet
5064
run: |
5165
cd src/Sdcb.Arithmetic.Mpfr.Tests

0 commit comments

Comments
 (0)