-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (58 loc) · 1.83 KB
/
package_main.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: NuGet Package & Publish (1.0.0)
# TODO - 8/2/2021 - @ahoefling - Add support for build tagging which will create a final build
on:
push:
branches: [ main ]
jobs:
nuget-pack:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Install CUDA
env:
cuda: 'CUDA-11.4.0'
visual_studio: 'Visual Studio 16 2019'
shell: powershell
run: .\build\cuda.ps1
- name: Check NVCC
shell: powershell
run: |
nvcc -V
ls $env:CUDA_PATH
ls $env:CUDA_PATH\bin
ls $env:CUDA_PATH\include
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.302
- name: Setup NuGet.exe
uses: NuGet/[email protected]
with:
nuget-version: 5.x
- name: Set Dev Version
run: echo "PACKAGE_VERSION=1.0.0-dev.${{ GITHUB.RUN_NUMBER }}" >> $env:GITHUB_ENV
- name: Build
run: dotnet build src/FileOnQ.Imaging.Raw/FileOnQ.Imaging.Raw.csproj -c Release
- name: Pack
run: dotnet pack src/FileOnQ.Imaging.Raw/FileOnQ.Imaging.Raw.csproj -c Release -o . /p:ContinuousIntegrationBuild=true /p:Version=${{ env.PACKAGE_VERSION }} /p:PackageVersion=${{ env.PACKAGE_VERSION }}
- name: Upload NuGet Package
uses: actions/upload-artifact@v2
with:
name: Packages
path: |
*.nupkg
*.snupkg
nuget-publish:
needs: nuget-pack
runs-on: windows-2019
steps:
- name: Download Packages
uses: actions/download-artifact@v2
with:
name: Packages
- name: Set NuGet API Key
run: nuget setapikey ${{ secrets.NUGET_API_KEY }}
- name: Publish NuGet Package
run: nuget push *.nupkg -Source https://api.nuget.org/v3/index.json