From 282849bede17bcfcd31c9b1708f2f841ee97bc58 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 12:33:19 +0100 Subject: [PATCH 01/10] Create aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/aspnetcore-build.yml diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml new file mode 100644 index 00000000000000..1cc4cf6897db10 --- /dev/null +++ b/.github/workflows/aspnetcore-build.yml @@ -0,0 +1,28 @@ +name: AspNetCore build +on: + pull_request: + # Manual run + workflow_dispatch: + +jobs: + aspnetcore_build: + # Comment out this line to test the scripts in a fork + if: github.repository == 'dotnet/runtime' + name: Build AspNetCore on Windows + runs-on: windows-latest + steps: + - name: Checkout aspnetcore + uses: actions/checkout@v4 + with: + repository: 'dotnet/aspnetcore' + path: aspnetcore + ref: main + - name: Build + shell: cmd + working-directory: .\aspnetcore + run: | + + - name: List files + shell: cmd + working-directory: .\aspnetcore + run: dir -Recurse artifacts From 704cc3be69705c07edcf7de2b5dd724bcd75790d Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 12:40:22 +0100 Subject: [PATCH 02/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index 1cc4cf6897db10..ad3fd1ee4f5508 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -6,8 +6,6 @@ on: jobs: aspnetcore_build: - # Comment out this line to test the scripts in a fork - if: github.repository == 'dotnet/runtime' name: Build AspNetCore on Windows runs-on: windows-latest steps: @@ -18,10 +16,13 @@ jobs: path: aspnetcore ref: main - name: Build - shell: cmd + shell: powershell working-directory: .\aspnetcore run: | - + .\restore.ps1 + . .\activate.ps1 + cd eng + .\build.ps1 - name: List files shell: cmd working-directory: .\aspnetcore From f6ad301ca9cbc2011181622dbda2428682f3ee05 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 12:59:45 +0100 Subject: [PATCH 03/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index ad3fd1ee4f5508..3102ca7bfa0804 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -13,12 +13,11 @@ jobs: uses: actions/checkout@v4 with: repository: 'dotnet/aspnetcore' - path: aspnetcore ref: main - name: Build shell: powershell - working-directory: .\aspnetcore run: | + dir .\restore.ps1 . .\activate.ps1 cd eng From f3fd3d5f04642d3825e4cbe567b7b208c956530f Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 13:15:25 +0100 Subject: [PATCH 04/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index 3102ca7bfa0804..ecb62ca9255b65 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -18,7 +18,7 @@ jobs: shell: powershell run: | dir - .\restore.ps1 + .\restore.cmd . .\activate.ps1 cd eng .\build.ps1 From 9d4166573e2f51aec51853c1e2f57a15092f0e00 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 13:36:03 +0100 Subject: [PATCH 05/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index ecb62ca9255b65..db8ef5c410268a 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -12,6 +12,7 @@ jobs: - name: Checkout aspnetcore uses: actions/checkout@v4 with: + submodules: recursive repository: 'dotnet/aspnetcore' ref: main - name: Build From 83c216eb8622bc899469b33dfcaa39292242b5ec Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 14:02:10 +0100 Subject: [PATCH 06/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index db8ef5c410268a..c4844d0f3cc10d 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -24,6 +24,5 @@ jobs: cd eng .\build.ps1 - name: List files - shell: cmd - working-directory: .\aspnetcore + shell: powershell run: dir -Recurse artifacts From e2cc7098565567419a15f4565b734192e8091d22 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 14:52:09 +0100 Subject: [PATCH 07/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index c4844d0f3cc10d..2784996fe3e305 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -26,3 +26,8 @@ jobs: - name: List files shell: powershell run: dir -Recurse artifacts + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: aspnetcore-runtime-debug + path: artifacts/packages/ From a30a2b8286f7152b649750370c541f8172eb9d17 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 15:42:21 +0100 Subject: [PATCH 08/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index 2784996fe3e305..69f55d66c6cba0 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -22,7 +22,7 @@ jobs: .\restore.cmd . .\activate.ps1 cd eng - .\build.ps1 + .\build.ps1 -c Debug -Pack /p:VersionSuffix=criteo1 - name: List files shell: powershell run: dir -Recurse artifacts From b5e603370c9682b86225802eb7912475afba1173 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Thu, 7 Nov 2024 17:26:29 +0100 Subject: [PATCH 09/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index 69f55d66c6cba0..1ae6aa919bede1 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -30,4 +30,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: aspnetcore-runtime-debug - path: artifacts/packages/ + path: artifacts/installers/ From 7baec2b4710c97f1f1c24b0510bd6bc1b0130935 Mon Sep 17 00:00:00 2001 From: JP Durot Date: Fri, 8 Nov 2024 11:27:43 +0100 Subject: [PATCH 10/10] Update aspnetcore-build.yml --- .github/workflows/aspnetcore-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aspnetcore-build.yml b/.github/workflows/aspnetcore-build.yml index 1ae6aa919bede1..ca9dc6bbf51259 100644 --- a/.github/workflows/aspnetcore-build.yml +++ b/.github/workflows/aspnetcore-build.yml @@ -22,7 +22,7 @@ jobs: .\restore.cmd . .\activate.ps1 cd eng - .\build.ps1 -c Debug -Pack /p:VersionSuffix=criteo1 + .\build.ps1 -c Debug -Pack -Publish /p:VersionSuffix=criteo1 - name: List files shell: powershell run: dir -Recurse artifacts