4
4
name : build
5
5
on :
6
6
workflow_dispatch :
7
+ inputs :
8
+ configuration :
9
+ type : choice
10
+ description : Configuration
11
+ options :
12
+ - Release
13
+ - Debug
7
14
push :
8
15
branches : [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
9
16
paths-ignore :
10
17
- changelog.md
11
- - code-of-conduct.md
12
- - security.md
13
- - support.md
14
18
- readme.md
15
19
pull_request :
16
20
types : [opened, synchronize, reopened]
17
21
18
22
env :
19
23
DOTNET_NOLOGO : true
24
+ PackOnBuild : true
25
+ GeneratePackageOnBuild : true
20
26
VersionPrefix : 42.42.${{ github.run_number }}
21
27
VersionLabel : ${{ github.ref }}
28
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
29
+ MSBUILDTERMINALLOGGER : auto
30
+ Configuration : ${{ github.event.inputs.configuration || 'Release' }}
22
31
23
32
defaults :
24
33
run :
31
40
matrix : ${{ steps.lookup.outputs.matrix }}
32
41
steps :
33
42
- name : 🤘 checkout
34
- uses : actions/checkout@v2
43
+ uses : actions/checkout@v4
35
44
36
45
- name : 🔎 lookup
37
46
id : lookup
@@ -50,34 +59,18 @@ jobs:
50
59
os : ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
51
60
steps :
52
61
- name : 🤘 checkout
53
- uses : actions/checkout@v2
62
+ uses : actions/checkout@v4
54
63
with :
55
64
submodules : recursive
56
65
fetch-depth : 0
57
66
58
67
- name : 🙏 build
59
68
run : dotnet build -m:1 -bl:build.binlog
60
69
61
- - name : ⚙ GNU grep
62
- if : matrix.os == 'macOS-latest'
63
- run : |
64
- brew install grep
65
- echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
66
-
67
70
- name : 🧪 test
68
- uses : ./.github/workflows/test
69
-
70
- - name : 📦 pack
71
- run : dotnet pack -m:1 -bl:pack.binlog
72
-
73
- # Only push CI package to sleet feed if building on ubuntu (fastest)
74
- - name : 🚀 sleet
75
- env :
76
- SLEET_CONNECTION : ${{ secrets.SLEET_CONNECTION }}
77
- if : env.SLEET_CONNECTION != ''
78
71
run : |
79
- dotnet tool install -g --version 4.0.18 sleet
80
- sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
72
+ dotnet tool update -g dotnet-retest
73
+ dotnet retest -- --no-build
81
74
82
75
- name : 🐛 logs
83
76
uses : actions/upload-artifact@v3
@@ -86,11 +79,19 @@ jobs:
86
79
name : logs
87
80
path : ' *.binlog'
88
81
82
+ - name : 🚀 sleet
83
+ env :
84
+ SLEET_CONNECTION : ${{ secrets.SLEET_CONNECTION }}
85
+ if : env.SLEET_CONNECTION != ''
86
+ run : |
87
+ dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
88
+ sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
89
+
89
90
dotnet-format :
90
91
runs-on : ubuntu-latest
91
92
steps :
92
93
- name : 🤘 checkout
93
- uses : actions/checkout@v2
94
+ uses : actions/checkout@v4
94
95
with :
95
96
submodules : recursive
96
97
fetch-depth : 0
0 commit comments