Skip to content

Commit 5bd68a5

Browse files
authored
fix artifact download error (#4)
1 parent 5d4a649 commit 5bd68a5

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,4 @@ on:
55
- 'main'
66
jobs:
77
package:
8-
runs-on: windows-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- name: Install Ninja
12-
run: choco install ninja
13-
- name: Generate Ninja build
14-
run: cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_COMPILER=clang
15-
- name: Package
16-
run: cmake --build build --target package
17-
- uses: actions/upload-artifact@v3
18-
with:
19-
name: package
20-
path: |
21-
build/*.msi
22-
build/*.zip
23-
if-no-files-found: error
8+
uses: ./.github/workflows/reusable-package.yml

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
required: true
88
type: string
99
jobs:
10+
package:
11+
uses: ./.github/workflows/reusable-package.yml
1012
release:
1113
runs-on: ubuntu-latest
1214
steps:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Package
2+
on:
3+
workflow_call:
4+
jobs:
5+
package:
6+
runs-on: windows-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Install Ninja
10+
run: choco install ninja
11+
- name: Generate Ninja build
12+
run: cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_COMPILER=clang
13+
- name: Package
14+
run: cmake --build build --target package
15+
- uses: actions/upload-artifact@v3
16+
with:
17+
name: package
18+
path: |
19+
build/*.msi
20+
build/*.zip
21+
if-no-files-found: error

0 commit comments

Comments
 (0)