summaryrefslogtreecommitdiff
path: root/.github
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 /.github
parent46db93c4c0542166457f5504010b402a9426ab1d (diff)
Add logs as artifacts for actions (#989)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-pr.yml8
-rw-r--r--.github/workflows/ci.yml8
2 files changed, 14 insertions, 2 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