Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
vAlerainTech committed Apr 16, 2024
2 parents 53850f5 + 93131be commit 54738d7
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 23 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/CMakeLists.txt
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)


23 changes: 0 additions & 23 deletions .github/workflows/c-cpp.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/cmake-single-platform.yml
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 # 安装生成的文件
1 change: 1 addition & 0 deletions build/void
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 54738d7

Please sign in to comment.