-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (47 loc) · 1.67 KB
/
test-nuget.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test NuGet
on:
push:
branches:
- master
paths:
- .github/workflows/test-nuget.yml
- src/**
workflow_dispatch:
env:
NUGET_REGISTRY: https://proget.starworks.cc:88/nuget/test/v3/index.json
GMP_NUGET_VERSION: 6.3.0-preview.1
MPFR_NUGET_VERSION: 4.2.1-preview.2
jobs:
test:
strategy:
matrix:
include:
- { os: win, arch: x64 }
- { os: win, arch: x86 }
- { os: linux, arch: x64 }
runs-on: ${{ matrix.os == 'win' && 'windows-latest' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- name: Configure NuGet Source
run: dotnet nuget add source --name StarWorks --source "${{ env.NUGET_REGISTRY }}"
- name: Download GMP Native NuGet
run: |
cd src/Sdcb.Arithmetic.Gmp.Tests
dotnet add package Sdcb.Arithmetic.Gmp.runtime.${{ matrix.os }}-${{ matrix.arch }} -v ${{ env.GMP_NUGET_VERSION }} --no-restore
cat Sdcb.Arithmetic.Gmp.Tests.csproj
- name: Download MPFR Native NuGet
run: |
cd src/Sdcb.Arithmetic.Mpfr.Tests
dotnet add package Sdcb.Arithmetic.Gmp.runtime.${{ matrix.os }}-${{ matrix.arch }} -v ${{ env.GMP_NUGET_VERSION }} --no-restore
cat Sdcb.Arithmetic.Mpfr.Tests.csproj
- name: DotNet Build
run: |
dotnet build -c Release --runtime ${{ matrix.os }}-${{ matrix.arch }}
- name: Test GMP
run: |
cd src/Sdcb.Arithmetic.Gmp.Tests
dotnet test -c Release --no-build --runtime ${{ matrix.os }}-${{ matrix.arch }}
- name: Test MPFR
run: |
cd src/Sdcb.Arithmetic.Mpfr.Tests
dotnet test -c Release --no-build --runtime ${{ matrix.os }}-${{ matrix.arch }}