Skip to content

Commit 2e78ffb

Browse files
committed
ci: add x64 build job
Signed-off-by: Dylan <2894220@gmail.com>
1 parent 75846ad commit 2e78ffb

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
BUILD_CONFIGURATION: Release
1313

1414
jobs:
15-
build:
15+
build-x86_64:
1616
runs-on: windows-2019
1717

1818
steps:
@@ -30,6 +30,40 @@ jobs:
3030
- name: Fetch all tags
3131
run: git fetch --tags --prune --unshallow --force
3232

33+
- name: Configure CMake
34+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
35+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
36+
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=${{env.BUILD_CONFIGURATION}}
37+
38+
- name: Build nim-demo
39+
# Build your program with the given configuration
40+
run: cmake --build build --config ${{env.BUILD_CONFIGURATION}}
41+
42+
- name: Build nim-demo installer
43+
run: cmake --build build --config ${{env.BUILD_CONFIGURATION}} --target installer
44+
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: PC_Demo_Setup
48+
path: bin/NIM_Demo_Setup*.exe
49+
build-x86:
50+
runs-on: windows-2019
51+
52+
steps:
53+
- uses: actions/checkout@v2
54+
55+
- name: Add MSBuild to PATH
56+
uses: microsoft/setup-msbuild@v1
57+
58+
- name: Install Conan
59+
id: conan
60+
uses: turtlebrowser/get-conan@main
61+
with:
62+
version: 1.65.0
63+
64+
- name: Fetch all tags
65+
run: git fetch --tags --prune --unshallow --force
66+
3367
- name: Configure CMake
3468
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3569
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type

0 commit comments

Comments
 (0)