-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (32 loc) · 921 Bytes
/
Copy pathbuild.yml
File metadata and controls
40 lines (32 loc) · 921 Bytes
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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build & verify
runs-on: windows-latest # System.Drawing.Common requires Windows on .NET 8/9
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Build (Debug)
run: dotnet build src/ImageProcessor.Core/ImageProcessor.Core.csproj -c Debug
- name: Build (Release)
run: dotnet build src/ImageProcessor.Core/ImageProcessor.Core.csproj -c Release
- name: Pack (verify all TFMs included)
run: |
dotnet pack src/ImageProcessor.Core/ImageProcessor.Core.csproj \
-c Release \
-o artifacts
ls -la artifacts/