Skip to content

Commit b255fd3

Browse files
committed
add dll release archive
1 parent 21e7513 commit b255fd3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,19 @@ jobs:
9494
- name: Build
9595
shell: cmd
9696
working-directory: ./build
97-
run: .\conanbuild.bat && cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DBUILD_SHARED_LIBS=1 && cmake --build . --config Release && dir && dir Release
97+
run: .\conanbuild.bat && cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DBUILD_SHARED_LIBS=1 && cmake --build . --config Release
98+
99+
- name: Create archive
100+
working-directory: ./build
101+
run: Compress-Archive -Path Release/* -Destination bncsutil_${{ github.ref_name }}_amd64_dll.zip
102+
103+
- uses: actions/upload-artifact@v4
104+
with:
105+
retention-days: 1
106+
overwrite: true
107+
name: bncsutil_${{ github.ref_name }}_amd64_dll.zip
108+
path: build/bncsutil_${{ github.ref_name }}_amd64_dll.zip
109+
98110

99111
release:
100112
needs: [deb, rpm, dll]
@@ -110,13 +122,19 @@ jobs:
110122
uses: actions/download-artifact@v4
111123
with:
112124
name: libbncsutil-devel-${{ github.ref_name }}.x86_64.rpm
125+
126+
- name: Download dll
127+
uses: actions/download-artifact@v4
128+
with:
129+
name: bncsutil_${{ github.ref_name }}_amd64_dll.zip
113130

114131
- name: Create GitHub Release
115132
uses: softprops/action-gh-release@v1
116133
with:
117134
files: |
118135
libbncsutil-dev_${{ github.ref_name }}_amd64.deb
119136
libbncsutil-devel-${{ github.ref_name }}.x86_64.rpm
137+
bncsutil_${{ github.ref_name }}_amd64_dll.zip
120138
tag_name: ${{ github.ref_name }}
121139
env:
122140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)