Skip to content

Commit 7b76f09

Browse files
committed
Upload separate GHA artifacts for each platform
Makes downloading and manually testing artifacts more convenient, as you can download just artifacts for the platform you care about.
1 parent 009b571 commit 7b76f09

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ jobs:
55
name: Build & test
66
strategy:
77
matrix:
8-
os: [
9-
"ubuntu-18.04",
10-
"windows-2019",
11-
"macos-10.15"
12-
]
8+
include:
9+
- platform: linux
10+
os: "ubuntu-18.04"
11+
- platform: windows
12+
os: "windows-2019"
13+
- platform: mac
14+
os: "macos-10.15"
1315
runs-on: ${{ matrix.os }}
1416
steps:
1517
- uses: actions/checkout@v2
@@ -43,7 +45,7 @@ jobs:
4345

4446
- uses: actions/upload-artifact@v2
4547
with:
46-
name: distributables
48+
name: ${{ matrix.platform }}-distributables
4749
path: dist/HttpToolkit-*
4850
if-no-files-found: error
4951
publish:
@@ -52,11 +54,8 @@ jobs:
5254
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
5355
needs: build
5456
steps:
55-
- name: Get our distributables
57+
- name: Get all distributables
5658
uses: actions/download-artifact@v2
57-
with:
58-
name: distributables
59-
path: built-distributables
6059

6160
- name: Create Release
6261
id: create_release
@@ -76,4 +75,4 @@ jobs:
7675
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7776
with:
7877
release_id: ${{ steps.create_release.outputs.id }}
79-
assets_path: ./built-distributables/
78+
assets_path: ./*/

0 commit comments

Comments
 (0)