summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdonais Romero González <[email protected]>2023-06-01 15:44:11 -0700
committerGitHub <[email protected]>2023-06-01 15:44:11 -0700
commit29e42c339a2dfd502d9c09efa53d10863be518ce (patch)
tree96c45ce7bf37a204e57b906af4f2d029b7f84e68
parent46db93c4c0542166457f5504010b402a9426ab1d (diff)
Add logs as artifacts for actions (#989)
-rw-r--r--.github/workflows/ci-pr.yml8
-rw-r--r--.github/workflows/ci.yml8
-rw-r--r--Build-SampleSet.ps12
-rw-r--r--Building-Locally.md2
4 files changed, 16 insertions, 4 deletions
diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml
index 147bd4e2..880a5b47 100644
--- a/.github/workflows/ci-pr.yml
+++ b/.github/workflows/ci-pr.yml
@@ -31,10 +31,16 @@ jobs:
separator: ","
- name: Retrieve and build solutions from changed files
- id: build-changed-samples
run: |
$changedFiles = "${{ steps.get-changed-files.outputs.all_changed_files }}".Split(',')
.\.github\scripts\Build-ChangedSamples.ps1 -ChangedFiles $changedFiles -Verbose
env:
WDS_Configuration: ${{ matrix.configuration }}
WDS_Platform: ${{ matrix.platform }}
+
+ - name: Archive logs
+ uses: actions/upload-artifact@v3
+ if: always()
+ with:
+ name: logs
+ path: _logs
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6b97cfff..1f83f466 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -25,9 +25,15 @@ jobs:
uses: microsoft/[email protected]
- name: Retrieve and build all available solutions
- id: build-all-samples
run: |
.\Build-AllSamples.ps1 -Verbose
env:
WDS_Configuration: ${{ matrix.configuration }}
WDS_Platform: ${{ matrix.platform }}
+
+ - name: Archive logs
+ uses: actions/upload-artifact@v3
+ if: always()
+ with:
+ name: logs
+ path: _logs
diff --git a/Build-SampleSet.ps1 b/Build-SampleSet.ps1
index 32821980..cb7c2a5f 100644
--- a/Build-SampleSet.ps1
+++ b/Build-SampleSet.ps1
@@ -20,7 +20,7 @@ if ($PSBoundParameters.ContainsKey('Verbose')) {
}
New-Item -ItemType Directory -Force -Path $LogFilesDirectory | Out-Null
-$sampleBuilderFilePath = "$LogFilesDirectory\overview.htm"
+$sampleBuilderFilePath = "$LogFilesDirectory\_overview.htm"
Remove-Item -Recurse -Path $LogFilesDirectory 2>&1 | Out-Null
diff --git a/Building-Locally.md b/Building-Locally.md
index 8f62a609..b4f0339a 100644
--- a/Building-Locally.md
+++ b/Building-Locally.md
@@ -72,5 +72,5 @@ Excluded: 56
Unsupported: 230
Failed: 0
Log files directory: .\_logs
-Overview report: .\_logs\overview.htm
+Overview report: .\_logs\_overview.htm
```