|
72 | 72 | includeIntegrations: true
|
73 | 73 | includeTemplates: true
|
74 | 74 |
|
| 75 | + # Build CLI native archives |
| 76 | + build_cli_archives: |
| 77 | + name: Build CLI (${{ matrix.targets.os }}) |
| 78 | + runs-on: ${{ matrix.targets.os }} |
| 79 | + strategy: |
| 80 | + matrix: |
| 81 | + targets: |
| 82 | + - os: ubuntu-latest |
| 83 | + rids: linux-x64 |
| 84 | + - os: windows-latest |
| 85 | + rids: win-x64 |
| 86 | + - os: macos-latest |
| 87 | + rids: osx-arm64 |
| 88 | + |
| 89 | + steps: |
| 90 | + - name: Checkout code |
| 91 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 92 | + |
| 93 | + - name: Build CLI packages (Windows) |
| 94 | + env: |
| 95 | + CI: false |
| 96 | + if: ${{ matrix.targets.os == 'windows-latest' }} |
| 97 | + shell: pwsh |
| 98 | + run: > |
| 99 | + .\build.cmd |
| 100 | + -ci |
| 101 | + -build |
| 102 | + -restore |
| 103 | + /bl:${{ github.workspace }}/artifacts/log/Debug/BuildCli.binlog |
| 104 | + /p:ContinuousIntegrationBuild=true |
| 105 | + /p:SkipManagedBuild=true |
| 106 | + /p:TargetRids=${{ matrix.targets.rids }} |
| 107 | +
|
| 108 | + - name: Build CLI packages (Unix) |
| 109 | + env: |
| 110 | + CI: false |
| 111 | + if: ${{ matrix.targets.os != 'windows-latest' }} |
| 112 | + shell: bash |
| 113 | + run: > |
| 114 | + ./build.sh |
| 115 | + --ci |
| 116 | + --build |
| 117 | + --restore |
| 118 | + /bl:${{ github.workspace }}/artifacts/log/Debug/BuildCli.binlog |
| 119 | + /p:ContinuousIntegrationBuild=true |
| 120 | + /p:SkipManagedBuild=true |
| 121 | + /p:TargetRids=${{ matrix.targets.rids }} |
| 122 | +
|
| 123 | + - name: Upload logs |
| 124 | + if: always() |
| 125 | + uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 |
| 126 | + with: |
| 127 | + name: cli-native-logs-${{ matrix.targets.rids }} |
| 128 | + path: artifacts/log/** |
| 129 | + |
| 130 | + - name: Upload CLI archives |
| 131 | + if: always() |
| 132 | + uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 |
| 133 | + with: |
| 134 | + name: cli-native-archives-${{ matrix.targets.rids }} |
| 135 | + path: artifacts/packages/**/aspire-cli* |
| 136 | + retention-days: 15 |
| 137 | + if-no-files-found: error |
| 138 | + |
75 | 139 | build_packages:
|
76 | 140 | name: Build packages
|
77 | 141 | if: ${{ github.repository_owner == 'dotnet' }}
|
|
90 | 154 | with:
|
91 | 155 | name: built-nugets
|
92 | 156 | path: artifacts/packages
|
| 157 | + retention-days: 15 |
93 | 158 |
|
94 | 159 | - name: Upload logs
|
95 | 160 | uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
|
@@ -229,6 +294,7 @@ jobs:
|
229 | 294 | runs-on: ubuntu-latest
|
230 | 295 | name: Final Results
|
231 | 296 | needs: [
|
| 297 | + build_cli_archives, |
232 | 298 | endtoend_tests,
|
233 | 299 | extension_tests_win,
|
234 | 300 | integrations_test_lin,
|
|
0 commit comments