-
Notifications
You must be signed in to change notification settings - Fork 69
43 lines (35 loc) · 1.23 KB
/
apphost-build.yml
File metadata and controls
43 lines (35 loc) · 1.23 KB
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
name: AppHost Build
on:
workflow_call:
permissions:
contents: read
jobs:
build:
name: AppHost Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
global-json-file: global.json
- name: Restore
run: cd src/apphost/Aspire.Dev.AppHost && dotnet restore
- name: Build
run: cd src/apphost/Aspire.Dev.AppHost && dotnet build --no-restore --configuration Release
- name: Verify output
run: |
APPHOST_DLL=$(ls -1 src/apphost/Aspire.Dev.AppHost/bin/Release/*/Aspire.Dev.AppHost.dll 2>/dev/null | head -n 1)
if [ -z "$APPHOST_DLL" ]; then
echo "AppHost build failed - output assembly not found"
ls -R src/apphost/Aspire.Dev.AppHost/bin/Release || true
exit 1
fi
echo "Found $APPHOST_DLL"
- name: Upload artifact
if: ${{ always() }}
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: apphost-release
path: src/apphost/Aspire.Dev.AppHost/bin/Release/*/
if-no-files-found: warn
retention-days: 7