-
Notifications
You must be signed in to change notification settings - Fork 8
78 lines (64 loc) · 1.98 KB
/
build.yaml
File metadata and controls
78 lines (64 loc) · 1.98 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build
on:
pull_request:
branches: [ 'rhino-8.x' ]
workflow_dispatch:
env:
RHINO_TOKEN: ${{ secrets.RHINO_TOKEN }}
jobs:
build:
runs-on: windows-latest
steps:
- name: Get token
id: my-app
uses: getsentry/action-github-app-token@v3
with:
app_id: ${{ secrets.MERGE_DOWN_APP_ID }}
private_key: ${{ secrets.MERGE_DOWN_APP_PRIVATE_KEY }}
- name: Enable Auto-Merge
uses: kenhowardpdx/auto-merge-action@v1
with:
token: ${{ steps.my-app.outputs.token }}
- name: Install dotnet 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: dotnet build -c Release Rhino.Testing.sln
- name: Install Rhino
uses: mcneel/setup-rhino3d@v2
id: setup_rhino
with:
release-version: latest
email-address: ${{ secrets.EMAIL_ADDRESS }}
- name: Run Tests (net48)
shell: pwsh
run: dotnet test --framework net48
- name: Run Tests (net8.0-windows)
shell: pwsh
run: dotnet test --framework net8.0-windows
- name: Install dotnet 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- name: Run Tests (net7.0-windows)
shell: pwsh
run: dotnet test --framework net7.0-windows
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: rhinotesting-nupkg
path: src/build/*.nupkg
publish:
needs: [ build ]
runs-on: ubuntu-latest
if: (github.event_name == 'workflow_dispatch')
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: rhinotesting-nupkg
- name: Push packages to nuget.org
run: dotnet nuget push '*.nupkg' --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}