-
Notifications
You must be signed in to change notification settings - Fork 14
57 lines (53 loc) · 1.57 KB
/
ci.yml
File metadata and controls
57 lines (53 loc) · 1.57 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
name: ci
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# See https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
# Disable IceRpc build telemetry
IceRpcBuildTelemetry: false
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-26, windows-2025]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Dump System Information
if: runner.os != 'Windows'
shell: bash
run: ulimit -a
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: ./.github/actions/setup-dotnet
- name: Build
run: dotnet build
shell: bash
- name: Publish Local Packages
run: ./build/publish-local-packages.sh
shell: bash
- name: Run Tests
uses: ./.github/actions/test
- name: Install Templates
run: dotnet new install src/IceRpc.Templates/bin/Debug/IceRpc.Templates.*.nupkg
shell: bash
- name: Test Templates
uses: ./.github/actions/test-templates
- name: Build Examples
env:
# Set IceRpcVersion to use the locally built packages
IceRpcVersion: "0.6.0-preview.1"
run: |
for solution in examples/*/*/*.slnx; do dotnet build "$solution"; done
shell: bash
- name: Build DocFX Examples
run: dotnet build docfx/examples/Examples.slnx
shell: bash