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' }}
31+ SLEET_FEED_URL : ${{ vars.SLEET_FEED_URL }}
2232
2333defaults :
2434 run :
3141 matrix : ${{ steps.lookup.outputs.matrix }}
3242 steps :
3343 - name : 🤘 checkout
34- uses : actions/checkout@v2
44+ uses : actions/checkout@v4
3545
3646 - name : 🔎 lookup
3747 id : lookup
@@ -50,44 +60,48 @@ jobs:
5060 os : ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5161 steps :
5262 - name : 🤘 checkout
53- uses : actions/checkout@v2
63+ uses : actions/checkout@v4
5464 with :
5565 submodules : recursive
5666 fetch-depth : 0
5767
58- - name : 🙏 build
59- run : dotnet build -m:1
68+ - name : ⚙ dotnet
69+ uses : devlooped/actions- dotnet-env@v1
6070
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
71+ - name : 🙏 build
72+ run : dotnet build -m:1 -bl:build.binlog
6673
6774 - name : 🧪 test
68- uses : ./.github/workflows/test
75+ shell : pwsh
76+ run : dnx --yes retest -- --no-build
6977
70- - name : 📦 pack
71- run : dotnet pack -m:1
78+ - name : 🐛 logs
79+ uses : actions/upload-artifact@v4
80+ if : runner.debug && always()
81+ with :
82+ name : logs
83+ path : ' *.binlog'
7284
73- # Only push CI package to sleet feed if building on ubuntu (fastest)
7485 - name : 🚀 sleet
7586 env :
7687 SLEET_CONNECTION : ${{ secrets.SLEET_CONNECTION }}
7788 if : env.SLEET_CONNECTION != ''
7889 run : |
79- dotnet tool install -g --version 4.0.18 sleet
90+ dotnet tool update sleet -g --allow-downgrade -- version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.[" sleet:version"]' -r)
8091 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"
8192
8293 dotnet-format :
8394 runs-on : ubuntu-latest
8495 steps :
8596 - name : 🤘 checkout
86- uses : actions/checkout@v2
97+ uses : actions/checkout@v4
8798 with :
8899 submodules : recursive
89100 fetch-depth : 0
90101
102+ - name : ⚙ dotnet
103+ uses : devlooped/actions-dotnet-env@v1
104+
91105 - name : ✓ ensure format
92106 run : |
93107 dotnet format whitespace --verify-no-changes -v:diag --exclude ~/.nuget
0 commit comments