-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (84 loc) · 3.03 KB
/
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Continuous integration
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
workflow_dispatch:
env:
BUILD_PATH: "./src/vue"
jobs:
build-pages:
name: Build pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Restore dependencies
run: npm install
working-directory: ${{ env.BUILD_PATH }}
- name: Build
run: npm run build
working-directory: ${{ env.BUILD_PATH }}
env:
BASE_PATH: "${{ steps.pages.outputs.base_path }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "${{ env.BUILD_PATH }}/dist"
build-dotnet:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Restore workloads
run: dotnet workload restore
- name: Restore dependencies
run: dotnet restore
- name: Build debug, no shared instances
run: dotnet build --configuration Debug /p:UseSharedInstances=false
- name: Build debug, no hash sets
run: dotnet build --configuration Debug /p:UseHashSets=false
- name: Build debug, no vectors
run: dotnet build --configuration Debug /p:UseVectors=false
- name: Build debug, no stackalloc
run: dotnet build --configuration Debug /p:UseStackalloc=false
- name: Build debug, no bit array
run: dotnet build --configuration Debug /p:UseBitArray=false
- name: Build debug, allow dynamic FLUTE degree
run: dotnet build --configuration Debug /p:AllowDynamicFluteDegree=true
- name: Build debug, no grid ToString
run: dotnet build --configuration Debug /p:EnableGridToString=false
- name: Build debug, no defines at all
run: dotnet build --configuration Debug /p:UseDefines=false
- name: Build release without defines
run: dotnet build --configuration Release /p:UseDefines=false
- name: Test without defines
run: dotnet test --no-build --configuration Release --logger "console;verbosity=normal"
- name: Build release with defines
run: dotnet build --configuration Release
- name: Test with defines
run: dotnet test --no-build --configuration Release --logger "console;verbosity=normal"
- name: Publish
run: dotnet publish src/WebApp --configuration Release --output src/WebApp/bin/publish --runtime linux-x64 --no-self-contained /p:PublishReadyToRun=true