-
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (64 loc) · 2.26 KB
/
build.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
name: "Build Library"
on:
push:
branches:
- main
paths-ignore:
- "AITSYS.Vimeo.Ott.Docs/**"
- "*.md"
- "*.json"
pull_request:
merge_group:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true
jobs:
build:
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Build library
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 9.x
- name: Restore dependencies
run: dotnet restore --no-cache -f -v minimal AITSYS.Vimeo.Ott.sln
- name: Build library
run: dotnet build -c Release -v minimal --no-restore AITSYS.Vimeo.Ott.sln
- name: Test library
run: dotnet test -v minimal -c Release --no-restore --no-build AITSYS.Vimeo.Ott.sln
env:
VIMEO_TEST_TOKEN: ${{ secrets.VIMEO_TEST_TOKEN }}
VIMEO_TEST_USER: ${{ secrets.VIMEO_TEST_USER }}
pack:
timeout-minutes: 15
runs-on: ubuntu-latest
name: "Pack and Artifact"
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 9.x
- name: Restore Packages
run: dotnet restore --no-cache -f -v minimal AITSYS.Vimeo.Ott.sln
- name: Build library
run: dotnet build -c Release -v minimal --no-restore AITSYS.Vimeo.Ott.sln
- name: Publish library
run: dotnet pack -c Release -v minimal --no-build --no-restore --include-symbols --include-source -o ./artifacts AITSYS.Vimeo.Ott.sln
- name: Upload artifacts
uses: actions/[email protected]
with:
name: AITSYS.Vimeo.Ott
path: ./artifacts/