-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (82 loc) · 2.33 KB
/
build-test-cross.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Copyright (c) 2023. Perpetual Intelligence L.L.C. All Rights Reserved.
#
# For license, terms, and data policies, go to:
# https://terms.perpetualintelligence.com
# This pipeline builds and tests the protocol projects on all supported platforms. It does not publish any package.
name: build-test-cross
# Triggers
on:
workflow_dispatch:
jobs:
ubunto:
runs-on: ubuntu-latest
timeout-minutes: 15
# Environment Variables
env:
PI_CI_REFERENCE: local
PI_GITHUB_USERNAME_ENV: ${{ secrets.PI_GITHUB_USERNAME }}
PI_GITHUB_PAT_ENV: ${{ secrets.PI_GITHUB_PAT }}
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Setup .Net with global.json
- name: Setup .NET
uses: actions/setup-dotnet@v3
# Restore dependencies
- name: Restore
run: dotnet restore
# Build
- name: Build
run: dotnet build --no-restore
# Test
- name: Test
run: dotnet test --no-build --verbosity normal
macos:
runs-on: macos-latest
timeout-minutes: 15
# Environment Variables
env:
PI_CI_REFERENCE: local
PI_GITHUB_USERNAME_ENV: ${{ secrets.PI_GITHUB_USERNAME }}
PI_GITHUB_PAT_ENV: ${{ secrets.PI_GITHUB_PAT }}
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Setup .Net with global.json
- name: Setup .NET
uses: actions/setup-dotnet@v3
# Restore dependencies
- name: Restore
run: dotnet restore
# Build
- name: Build
run: dotnet build --no-restore
# Test
- name: Test
run: dotnet test --no-build --verbosity normal
windows:
runs-on: windows-latest
timeout-minutes: 15
# Environment Variables
env:
PI_CI_REFERENCE: local
PI_GITHUB_USERNAME_ENV: ${{ secrets.PI_GITHUB_USERNAME }}
PI_GITHUB_PAT_ENV: ${{ secrets.PI_GITHUB_PAT }}
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Setup .Net with global.json
- name: Setup .NET
uses: actions/setup-dotnet@v3
# Restore dependencies
- name: Restore
run: dotnet restore
# Build
- name: Build
run: dotnet build --no-restore
# Test
- name: Test
run: dotnet test --no-build --verbosity normal