-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 1.1 KB
/
Copy pathdotnet.yml
File metadata and controls
45 lines (34 loc) · 1.1 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
name: IOKit.Sharp
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Set default Xamarin SDK versions
run: |
$VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12 --mac=8.2
- name: Set default Xcode 13.0
run: |
XCODE_ROOT=/Applications/Xcode_13.0.0.app
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV
sudo xcode-select -s $XCODE_ROOT
- name: Setup .NET Core SDK 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore dependencies
run: dotnet restore IOKit-Sharp.sln
- name: Build
run: msbuild IOKit.Sharp/IOKit.Sharp.csproj /p:Configuration=Release
# - name: Test
# run: dotnet test --no-build --verbosity normal
- name: Publish Nuget Package
if: startsWith(github.ref, 'refs/heads/release')
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}