Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
77e6e56
update:read me
xengine-qyt Nov 29, 2024
af3d0a3
fixed:example build error
xengine-qyt Dec 31, 2024
b37adca
modify:workflows and more release support
xengine-qyt Dec 31, 2024
28b2505
update:depend library
xengine-qyt Dec 31, 2024
c08c6cb
update:match xengine v9.x support
xengine-qyt Dec 31, 2024
c7ed990
update:xengine v9.10
xengine-qyt Jan 13, 2025
3dd5309
modify:change ansi to unicode character set on vs
xengine-qyt Jan 13, 2025
ab2c97b
Create codeql.yml
xengine-qyt Jan 15, 2025
64cdc24
ci:codeql
xengine-qyt Jan 15, 2025
3d4b14e
ci:code ql test
xengine-qyt Jan 15, 2025
aa1e418
ci:add cpp check
xengine-qyt Jan 15, 2025
92036f8
ci:add codeql.yml
xengine-qyt Jan 15, 2025
87c0b33
modify:msg protocol define value.
xengine-qyt Jan 16, 2025
b430cf6
added:delete message support
xengine-qyt Jan 16, 2025
a7f0cd4
fixed:memory not delete old message when modify message
xengine-qyt Jan 16, 2025
956f6ab
update:Network error codes use a new method definition
xengine-qyt Jan 16, 2025
33b4592
update:example x86_64 build on windows supported
xengine-qyt Jan 16, 2025
5f522ae
update:depend library
xengine-qyt Jan 16, 2025
4f868e0
update:c++ compiler 20 and c compiler 17
xengine-qyt Jan 16, 2025
01d938c
fixed:Character set garbled problem
xengine-qyt Jan 17, 2025
8929157
modify:callback export type for memory cache
xengine-qyt Jan 17, 2025
480a6b2
added:user info memory cache supported
xengine-qyt Jan 17, 2025
38fadad
fixed:sometimes get left count value is incorrect
xengine-qyt Jan 17, 2025
8660615
fixed:get count is incorrect in data memory cache
xengine-qyt Jan 17, 2025
72950e4
fixed:The total available time of memory cache data is not handled co…
xengine-qyt Jan 17, 2025
3e59917
fixed:memory cache query is incorrect
xengine-qyt Jan 17, 2025
4f48072
fixed:user memory not work
xengine-qyt Jan 17, 2025
3f06fea
update:read me and document
xengine-qyt Jan 20, 2025
0d8fe24
update:configure
xengine-qyt Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CodeQL Advanced

on:
push:
branches:
- 'develop'
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'
- '.github/**'

jobs:
analyze:
runs-on: ubuntu-24.04
permissions:
security-events: write
packages: read
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'develop'

- name: Checkout dependency repository (xengine)
uses: actions/checkout@v4
with:
repository: libxengine/libxengine
path: libxengine

- name: sub module checkout (opensource)
run: |
git submodule init
git submodule update

- name: Set up Dependency Environment
run: |
cd libxengine
chmod +x ./XEngine_LINEnv.sh
sudo ./XEngine_LINEnv.sh -i 3

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: make
run: |
cd XEngine_Source
make

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
35 changes: 35 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: cpp check workflows

on:
push:
branches:
- 'develop'
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'
- '.github/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout main repository code
uses: actions/checkout@v4
with:
ref: 'develop'

- name: Create static_analysis directory
run: mkdir -p static_analysis

- name: Run Cppcheck
run: |
sudo apt-get install -y cppcheck
cppcheck --enable=all --language=c++ --std=c++20 ./XEngine_Source/ --output-file=static_analysis/log.xml --xml
continue-on-error: true

- name: Upload Cppcheck Results
uses: actions/upload-artifact@v4
with:
name: cppcheck_results
path: static_analysis/log.xml
71 changes: 0 additions & 71 deletions .github/workflows/linuxbuild.yml

This file was deleted.

42 changes: 32 additions & 10 deletions .github/workflows/macbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: macos build workflows

on:
push:
branches: [ "develop" ]
branches:
- 'develop'
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'

permissions:
contents: read
- '.github/**'

jobs:
build:
strategy:
matrix:
include:
- os: macos-13
- os: macos-14
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -24,7 +24,6 @@ jobs:
with:
ref: 'develop'

# 检出依赖的xengine仓库到指定的xengine目录
- name: Checkout dependency repository (xengine)
uses: actions/checkout@v4
with:
Expand All @@ -39,14 +38,30 @@ jobs:
- name: brew install
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# 设置依赖库的环境变量
- name: Set up Dependency Environment Variables
- name: Set up Dependency x86_64 Environment
if: matrix.os == 'macos-13'
run: |
cd libxengine
chmod 777 *
./XEngine_LINEnv.sh -i 3
cd ..
#编译
- name: Set up Dependency Arm64 Environment
if: matrix.os == 'macos-14'
run: |
cd libxengine
chmod 777 *
./XEngine_LINEnv.sh -i 0

latest_tag=$(git ls-remote --tags --sort="v:refname" https://github.com/libxengine/libxengine.git | awk '{print $2}' | sed 's/refs\/tags\///' | tail -n 1)

wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
unzip ./XEngine_Mac_Arm64.zip -d ./XEngine_Mac_Arm64
cd XEngine_Mac_Arm64

sudo mkdir -p /usr/local/include
sudo mkdir -p /usr/local/lib
sudo cp -rf ./XEngine_Include /usr/local/include
sudo find ./XEngine_Mac -name "*.dylib" -exec cp {} /usr/local/lib \;

- name: make debug
run: |
cd XEngine_Source
Expand All @@ -64,8 +79,15 @@ jobs:
cd XEngine_Release
./XEngine_MQServiceApp -t

- name: Upload folder as artifact with mac
- name: Upload folder as artifact with mac x64
if: matrix.os == 'macos-13'
uses: actions/upload-artifact@v4
with:
name: XEngine_MQServiceApp-x86_64-Mac
path: XEngine_Release/
- name: Upload folder as artifact with mac arm
if: matrix.os == 'macos-14'
uses: actions/upload-artifact@v4
with:
name: XEngine_MQServiceApp-Arm64-Mac
path: XEngine_Release/
44 changes: 26 additions & 18 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,68 @@ name: windows build workflows

on:
push:
branches: [ "develop" ]
branches:
- 'develop'
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'

permissions:
contents: read
- '.github/**'

jobs:
build:
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
configuration: [Debug ,Release]
platform: [x86 ,x64]

runs-on: windows-latest # 最新的 Windows 环境
runs-on: windows-latest

steps:
# 检出您的主仓库代码
- name: Checkout main repository code
uses: actions/checkout@v4
with:
ref: 'develop'

# 检出依赖的xengine仓库到指定的xengine目录
- name: Checkout dependency repository (xengine)
uses: actions/checkout@v4
with:
repository: libxengine/libxengine
path: xengine
path: libxengine

- name: sub module checkout (opensource)
run: |
git submodule init
git submodule update
shell: pwsh

# 设置依赖库的环境变量
- name: Set up Dependency Environment Variables
- name: Set up Dependency x86_64 Environment
if: matrix.platform == 'x64'
run: |
echo "XENGINE_INCLUDE=${{ github.workspace }}/libxengine" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "XENGINE_LIB64=${{ github.workspace }}/libxengine/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
shell: pwsh
- name: Set up Dependency x86_32 Environment
if: matrix.platform == 'x86'
run: |
echo "XENGINE_INCLUDE=${{ github.workspace }}/xengine" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "XENGINE_LIB32=${{ github.workspace }}/xengine/XEngine_Windows/x86" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "XENGINE_LIB64=${{ github.workspace }}/xengine/XEngine_Windows/x64" | Out-File -FilePath $env:GITHUB_ENV -Append
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"}
$latest_tag = $response.tag_name
Write-Host "Latest Tag: $latest_tag"

$url = "https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Windows_x86-32.zip"
Invoke-WebRequest -Uri $url -OutFile "XEngine_Windows_x86-32.zip"
Expand-Archive -Path ./XEngine_Windows_x86-32.zip -DestinationPath ./XEngine_Windows -Force

echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "XENGINE_LIB32=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
shell: pwsh

# 配置 MSBuild 的路径,准备构建 VC++ 项目
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
#编译

- name: Build Solution
run: msbuild XEngine_Source/XEngine_MQServiceApp.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
#测试

- name: Conditional Step for x86 Release
if: matrix.configuration == 'Release' && matrix.platform == 'x86'
run: |
Expand All @@ -66,7 +74,7 @@ jobs:
./VSCopy_x86.bat
./XEngine_MQServiceApp.exe -t
shell: pwsh
- name: Conditional Step for x86 Debug
- name: Conditional Step for x64 Release
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
run: |
cp -r XEngine_Source/x64/Release/*.dll XEngine_Release/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
with:
fetch-depth: 0

- name: Download linuxbuild
- name: Download ubuntubuild
uses: dawidd6/action-download-artifact@v6
with:
workflow: linuxbuild.yml
workflow: ubuntubuild.yml
workflow_conclusion: success
check_artifacts: false
skip_unpack: true
Expand Down
Loading
Loading