mirrored from https://gitlab.com/Elypia/imagecaster
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
62 lines (56 loc) · 1.8 KB
/
.gitlab-ci.yml
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
image: mcr.microsoft.com/dotnet/core/sdk:3.1.201-bionic
build:
stage: build
script:
- dotnet build --configuration Release-$QUANTUM_DEPTH src/ImageCasterCore
parallel:
matrix:
- QUANTUM_DEPTH: [Q16-HDRI, Q16, Q8]
WORKAROUND: https://gitlab.com/gitlab-org/gitlab/-/issues/26362
build-cross-platform:
stage: build
script:
- dotnet publish --configuration Release-$QUANTUM_DEPTH src/$PROJECT
- mv src/$PROJECT/bin/Release-$QUANTUM_DEPTH/netcoreapp3.1/publish/ imagecaster
artifacts:
paths:
- imagecaster
parallel:
matrix:
- QUANTUM_DEPTH: [Q16-HDRI, Q16, Q8]
PROJECT: [ImageCasterCli, ImageCasterApi]
build-non-self-contained:
stage: build
script:
- dotnet publish --configuration Release-$QUANTUM_DEPTH --runtime $RUNTIME --self-contained false src/$PROJECT
- mv src/$PROJECT/bin/Release-$QUANTUM_DEPTH/netcoreapp3.1/$RUNTIME/publish/ imagecaster
artifacts:
paths:
- imagecaster
parallel:
matrix:
- QUANTUM_DEPTH: [Q16-HDRI, Q16, Q8]
RUNTIME: [linux-x64, win-x64, osx-x64]
PROJECT: [ImageCasterCli, ImageCasterApi]
build-self-contained:
stage: build
script:
- dotnet publish --configuration Release-$QUANTUM_DEPTH --runtime $RUNTIME src/$PROJECT
- mv src/$PROJECT/bin/Release-$QUANTUM_DEPTH/netcoreapp3.1/$RUNTIME/publish/ imagecaster
artifacts:
paths:
- imagecaster
parallel:
matrix:
- QUANTUM_DEPTH: [Q16-HDRI, Q16, Q8]
RUNTIME: [linux-x64, win-x64, osx-x64]
PROJECT: [ImageCasterCli, ImageCasterApi]
# Testing
test:
stage: test
script:
- dotnet test --configuration Release-$QUANTUM_DEPTH src/ImageCasterCoreTest
parallel:
matrix:
- QUANTUM_DEPTH: [Q16-HDRI, Q16, Q8]
WORKAROUND: https://gitlab.com/gitlab-org/gitlab/-/issues/26362