44name : build
55on :
66 workflow_dispatch :
7+ inputs :
8+ configuration :
9+ type : choice
10+ description : Configuration
11+ options :
12+ - Release
13+ - Debug
714 push :
815 branches : [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
916 paths-ignore :
1017 - changelog.md
11- - code-of-conduct.md
12- - security.md
13- - support.md
1418 - readme.md
1519 pull_request :
1620 types : [opened, synchronize, reopened]
1721
1822env :
1923 DOTNET_NOLOGO : true
24+ PackOnBuild : true
25+ GeneratePackageOnBuild : true
2026 VersionPrefix : 42.42.${{ github.run_number }}
2127 VersionLabel : ${{ github.ref }}
28+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
29+ MSBUILDTERMINALLOGGER : auto
30+ Configuration : ${{ github.event.inputs.configuration || 'Release' }}
2231
2332defaults :
2433 run :
3140 matrix : ${{ steps.lookup.outputs.matrix }}
3241 steps :
3342 - name : 🤘 checkout
34- uses : actions/checkout@v2
43+ uses : actions/checkout@v4
3544
3645 - name : 🔎 lookup
3746 id : lookup
@@ -50,34 +59,18 @@ jobs:
5059 os : ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5160 steps :
5261 - name : 🤘 checkout
53- uses : actions/checkout@v2
62+ uses : actions/checkout@v4
5463 with :
5564 submodules : recursive
5665 fetch-depth : 0
5766
5867 - name : 🙏 build
5968 run : dotnet build -m:1 -bl:build.binlog
6069
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-
6770 - 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 != ''
7871 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
8174
8275 - name : 🐛 logs
8376 uses : actions/upload-artifact@v3
@@ -86,11 +79,19 @@ jobs:
8679 name : logs
8780 path : ' *.binlog'
8881
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+
8990 dotnet-format :
9091 runs-on : ubuntu-latest
9192 steps :
9293 - name : 🤘 checkout
93- uses : actions/checkout@v2
94+ uses : actions/checkout@v4
9495 with :
9596 submodules : recursive
9697 fetch-depth : 0
0 commit comments