Skip to content

Commit 1ee60c3

Browse files
committed
Update action add build for library
1 parent 9cc5185 commit 1ee60c3

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

.github/workflows/Test_windows.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ on:
1212

1313
env:
1414
BUILD_TYPE: Release
15+
VERSION_NAME: 1.1
1516

1617
jobs:
17-
Test_windows:
18+
Build_exec:
1819
runs-on: windows-latest
1920
steps:
2021
- name: Checkout repository
@@ -34,4 +35,48 @@ jobs:
3435
uses: actions/upload-artifact@v3
3536
with:
3637
name: SWPacker
37-
path: ${{github.workspace}}\out\1.1\Release\
38+
path: ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
39+
40+
Build_Unpack_Shared:
41+
runs-on: windows-latest
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
46+
- name: Config executables
47+
run: |
48+
mkdir build && cd build
49+
cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UNPACK_LIB_SHARED=ON ..
50+
51+
- name: Build executables
52+
run: |
53+
cd ${{github.workspace}}\build
54+
cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}}
55+
56+
- name: Archive Library
57+
uses: actions/upload-artifact@v3
58+
with:
59+
name: SWPacker
60+
path: ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
61+
62+
Build_Unpack_Static:
63+
runs-on: windows-latest
64+
steps:
65+
- name: Checkout repository
66+
uses: actions/checkout@v4
67+
68+
- name: Config executables
69+
run: |
70+
mkdir build && cd build
71+
cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UNPACK_LIB_STATIC=ON ..
72+
73+
- name: Build executables
74+
run: |
75+
cd ${{github.workspace}}\build
76+
cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}}
77+
78+
- name: Archive library
79+
uses: actions/upload-artifact@v3
80+
with:
81+
name: SWPacker
82+
path: ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\

0 commit comments

Comments
 (0)