-
Notifications
You must be signed in to change notification settings - Fork 40
57 lines (53 loc) · 1.74 KB
/
build-debug.yaml
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: build debug
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
env:
BUILD_CONFIG: Debug
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: guitarrapc/actions/.github/actions/setup-dotnet@main
with:
restore-wasm-workload: true
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build
run: dotnet build -c ${{ env.BUILD_CONFIG }} SkiaSharp.QrCode.Linux.slnf
- name: Test
run: dotnet test -c ${{ env.BUILD_CONFIG }} SkiaSharp.QrCode.sln --logger GitHubActions --logger "console;verbosity=normal"
run:
needs: [build]
strategy:
matrix:
dotnet-version: ["6.0", "7.0", "8.0"]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: guitarrapc/actions/.github/actions/setup-dotnet@main
with:
restore-wasm-workload: true
dotnet-version: |
6.0.x
7.0.x
8.0.x
# ManualGenerate
- name: Run ManualGenerate (${{ matrix.dotnet-version}})
run: dotnet run --project ./ManualGenerate.csproj -c ${{ env.BUILD_CONFIG }} -f net${{ matrix.dotnet-version }}
working-directory: ./samples/ManualGenerate
# SimpleGenerate
- name: Run SimpleGenerate (${{ matrix.dotnet-version}})
run: dotnet run --project ./samples/SimpleGenerate/SimpleGenerate.csproj -c ${{ env.BUILD_CONFIG }} -f net${{ matrix.dotnet-version }}
# LinuxRunSamples
- name: Run Linux Docker Compose (${{ matrix.dotnet-version}})
run: docker compose -f ./samples/LinuxCompose/compose.override.${{ matrix.dotnet-version }}.yaml up