Repository navigation
63 lines (55 loc) · 1.91 KB
/
Copy pathci.yml
File metadata and controls
63 lines (55 loc) · 1.91 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
58
59
60
61
62
63
name: CI
on: [push, pull_request, workflow_dispatch]
defaults:
run:
shell: bash
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build:
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Linux, os: ubuntu-24.04 }
- { name: Windows, os: windows-2025-vs2026 }
dotnet:
- { name: .NET 8, version: '8.0.x' }
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- name: Setup .NET SDK
id: setup-dotnet
uses: actions/setup-dotnet@v6
with:
dotnet-version: ${{ matrix.dotnet.version }}
- name: Enforce SDK Version
env:
DOTNET_VERSION: ${{ steps.setup-dotnet.outputs.dotnet-version }}
run: dotnet new globaljson --sdk-version "$DOTNET_VERSION" --force
- name: Verify SDK Installation
run: dotnet --info
- name: Restore
run: dotnet restore RIN.WebAPI/RIN.WebAPI.sln
- name: Build
run: dotnet build RIN.WebAPI/RIN.WebAPI.sln --configuration Release --no-restore
- name: Publish RIN.WebAPI
if: matrix.platform.name == 'Linux'
run: dotnet publish RIN.WebAPI/RIN.WebAPI.csproj --configuration Release --no-build --output Publish/RIN.WebAPI
- name: Publish RIN.InternalAPI
if: matrix.platform.name == 'Linux'
run: dotnet publish RIN.InternalAPI/RIN.InternalAPI.csproj --configuration Release --no-build --output Publish/RIN.InternalAPI
- name: Upload Artifact
if: matrix.platform.name == 'Linux'
uses: actions/upload-artifact@v7
with:
name: RIN.WebAPI-${{ github.sha }}
path: Publish
include-hidden-files: true