-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (72 loc) · 2.5 KB
/
Test_windows.yml
File metadata and controls
85 lines (72 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: SWPacker Windows
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
env:
BUILD_TYPE: Release
VERSION_NAME: 1.2
jobs:
Build_exec:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Config executables
run: |
mkdir build && cd build
cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ..
- name: Build executables
run: |
cd ${{github.workspace}}\build
cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}}
- name: Archive Executable
uses: actions/upload-artifact@v3
with:
name: SWPacker-Exec
path: ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
if-no-files-found: error
Build_Unpack_Shared:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Config executables
run: |
mkdir build && cd build
cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UNPACK_LIB_SHARED=ON ..
- name: Build executables
run: |
cd ${{github.workspace}}\build
cmake --build ${{github.workspace}}\build --target SWEngine-unpacker_${{env.VERSION_NAME}} --config ${{env.BUILD_TYPE}}
- name: Archive Library
uses: actions/upload-artifact@v3
with:
name: SWPacker-shared-lib
path: ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
if-no-files-found: error
Build_Unpack_Static:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Config executables
run: |
mkdir build && cd build
cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UNPACK_LIB_STATIC=ON ..
- name: Build executables
run: |
cd ${{github.workspace}}\build
cmake --build ${{github.workspace}}\build --target SWEngine-unpacker_${{env.VERSION_NAME}} --config ${{env.BUILD_TYPE}}
- name: Archive library
uses: actions/upload-artifact@v3
with:
name: SWPacker-static-lib
path: ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
if-no-files-found: error