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
20- VersionPrefix : 42.42.${{ github.run_number }}
21- VersionLabel : ${{ github.ref }}
2224 PackOnBuild : true
2325 GeneratePackageOnBuild : true
26+ VersionPrefix : 42.42.${{ github.run_number }}
27+ VersionLabel : ${{ github.ref }}
2428 GH_TOKEN : ${{ secrets.GH_TOKEN }}
25-
29+ MSBUILDTERMINALLOGGER : auto
30+ Configuration : ${{ github.event.inputs.configuration || 'Release' }}
31+
2632defaults :
2733 run :
2834 shell : bash
3440 matrix : ${{ steps.lookup.outputs.matrix }}
3541 steps :
3642 - name : 🤘 checkout
37- uses : actions/checkout@v2
43+ uses : actions/checkout@v4
3844
3945 - name : 🔎 lookup
4046 id : lookup
@@ -53,22 +59,18 @@ jobs:
5359 os : ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5460 steps :
5561 - name : 🤘 checkout
56- uses : actions/checkout@v2
62+ uses : actions/checkout@v4
5763 with :
5864 submodules : recursive
5965 fetch-depth : 0
6066
6167 - name : 🙏 build
6268 run : dotnet build -m:1 -bl:build.binlog
6369
64- - name : ⚙ GNU grep
65- if : matrix.os == 'macOS-latest'
66- run : |
67- brew install grep
68- echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
69-
7070 - name : 🧪 test
71- uses : ./.github/workflows/test
71+ run : |
72+ dotnet tool update -g dotnet-retest
73+ dotnet retest -- --no-build
7274
7375 - name : 🐛 logs
7476 uses : actions/upload-artifact@v3
@@ -77,20 +79,19 @@ jobs:
7779 name : logs
7880 path : ' *.binlog'
7981
80- # Only push CI package to sleet feed if building on ubuntu (fastest)
8182 - name : 🚀 sleet
8283 env :
8384 SLEET_CONNECTION : ${{ secrets.SLEET_CONNECTION }}
8485 if : env.SLEET_CONNECTION != ''
8586 run : |
86- dotnet tool install -g --version 4.0.18 sleet
87+ dotnet tool update sleet -g --allow-downgrade -- version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.[" sleet:version"]' -r)
8788 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"
8889
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