-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
4 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
project(vAlerain_Ark) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
# 添加头文件目录 | ||
include_directories(Header-file) | ||
include_directories(Header-file/sys) | ||
|
||
# 添加可执行文件目标 | ||
add_executable(main | ||
Preview-version/1.0.0.1/main.cpp) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CMake Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # 触发条件可以根据你的需要进行调整 | ||
pull_request: | ||
branches: | ||
- main # 同样,根据需要进行调整 | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest # 使用 Windows 最新版本 | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install CMake | ||
run: | | ||
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | ||
- name: Install Visual Studio Build Tools | ||
uses: microsoft/[email protected] # 设置 MSBuild 环境 | ||
|
||
- name: Configure | ||
run: cmake -Bbuild | ||
|
||
- name: Build | ||
run: cmake --build build --config Release # 编译 Release 版本,可以根据需要调整 | ||
|
||
- name: Test | ||
run: cmake --build build --target test # 运行测试,如果有的话 | ||
|
||
- name: Install | ||
run: cmake --install build # 安装生成的文件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|