Skip to content

Commit f8e3627

Browse files
committed
Add combine artifacts job
refs #1
1 parent 5dc8398 commit f8e3627

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/combine.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Combine artifacts
2+
on:
3+
workflow_run:
4+
workflows: [ "Build all" ]
5+
types:
6+
- completed
7+
8+
permissions:
9+
actions: read
10+
contents: read
11+
12+
jobs:
13+
package:
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
steps:
17+
- name: Download all artifacts
18+
uses: actions/download-artifact@v7
19+
with:
20+
pattern: wintab-adapter-gha${{github.event.workflow_run.run_number}}-*
21+
path: raw-artifacts
22+
run-id: ${{github.event.workflow_run.id}}
23+
github-token: ${{secrets.GITHUB_TOKEN}}
24+
- name: Organize and Combine
25+
run: |
26+
for arch in x86 x64; do
27+
rsync -av raw-artifacts/wintab-adapter-gha${{github.event.workflow_run.run_number}}-$arch/* combined/
28+
done
29+
- name: Upload combined binaries
30+
uses: actions/upload-artifact@v6
31+
with:
32+
name: wintab-adapter-gha${{github.event.workflow_run.run_number}}
33+
path: combined/bin/*
34+
- name: Upload combined debug symbols
35+
uses: actions/upload-artifact@v6
36+
with:
37+
name: wintab-adapter-gha${{github.event.workflow_run.run_number}}-debug-symbols
38+
path: combined/pdb/*

0 commit comments

Comments
 (0)