-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (43 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
52 lines (43 loc) · 1.2 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.x"
- name: Restore
run: dotnet restore CrawlerSamples.sln --use-current-runtime
- name: Build
run: dotnet build CrawlerSamples.sln -c Release --no-restore
- name: Publish
run: >
dotnet publish src/CrawlerSamples.ConsoleApp/CrawlerSamples.ConsoleApp.csproj
-c Release
--use-current-runtime
--self-contained
-o artifacts/publish
- name: Upload publish artifact
uses: actions/upload-artifact@v7
with:
name: crawler-samples-${{ matrix.os }}
path: artifacts/publish
if-no-files-found: error
retention-days: 7