Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4208477
Merge pull request #28 from libxengine/master
xengine-qyt Nov 15, 2024
dceb7cc
fixed:example build error
xengine-qyt Jan 2, 2025
3da0b5a
Merge branch 'develop' of github.com:libxengine/XEngine_ProxyServer i…
xengine-qyt Jan 2, 2025
942fe15
fixed:workflows build
xengine-qyt Jan 2, 2025
153aff6
update:depend library
xengine-qyt Jan 2, 2025
1ab717e
update:match xengine v9
xengine-qyt Jan 2, 2025
c2e1316
delete:xengine version judgment
xengine-qyt Jan 2, 2025
990430a
modify:build copy and make
xengine-qyt Jan 2, 2025
69563fc
update:ci and depend library
xengine-qyt Jan 17, 2025
4dcc129
update:character set modify to unicode from ansi on vs2022
xengine-qyt Jan 17, 2025
372b9be
update:compiler version to c++20 and c17
xengine-qyt Jan 17, 2025
fb01550
fixed:print Garbled characters
xengine-qyt Jan 17, 2025
824342e
fixed:lost header file
xengine-qyt Jan 17, 2025
9774ea5
added:full proxy network service
xengine-qyt Jan 20, 2025
f13af2a
added:full proxy forward support
xengine-qyt Jan 20, 2025
a0cc80c
fixed:forward not free client when destroy
xengine-qyt Jan 20, 2025
2214569
fixed:forward and proxy not free client token
xengine-qyt Jan 20, 2025
7cceeab
fixed:log print error and send message
xengine-qyt Jan 20, 2025
a05cc61
fixed:log crash for proxy
xengine-qyt Jan 20, 2025
7873fc4
fixed:log level and type is incorrect
xengine-qyt Jan 20, 2025
6eb7a88
added:set log level for parameter
xengine-qyt Jan 20, 2025
48c0fb7
modify:configure field name
xengine-qyt Jan 21, 2025
a7c93d2
update:read me and document
xengine-qyt Jan 21, 2025
72b37a2
update:version configure
xengine-qyt Jan 21, 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
44 changes: 33 additions & 11 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 @@ -30,7 +30,6 @@ jobs:
with:
repository: libxengine/libxengine
path: libxengine
ref: 'master'

- name: sub module checkout (opensource)
run: |
Expand All @@ -40,14 +39,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 @@ -65,8 +80,15 @@ jobs:
cd XEngine_Release
./XEngine_ProxyServiceApp -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_ProxyServiceApp-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_ProxyServiceApp-x64-Mac
name: XEngine_ProxyServiceApp-Arm64-Mac
path: XEngine_Release/
46 changes: 28 additions & 18 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ 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]
Expand All @@ -32,29 +31,41 @@ jobs:
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 }}/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
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: |
$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.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 @@ -74,18 +85,17 @@ jobs:
cd XEngine_Release
./VSCopy_x64.bat
shell: pwsh

#将文件夹打包为 artifact

- name: Upload folder as artifact with x86
if: matrix.configuration == 'Release' && matrix.platform == 'x86'
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
uses: actions/upload-artifact@v4
with:
name: XEngine_ProxyServiceApp-x86-Windows
name: XEngine_ProxyServiceApp-x86_32-Windows
path: XEngine_Release/

- name: Upload folder as artifact with x64
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
uses: actions/upload-artifact@v4
with:
name: XEngine_ProxyServiceApp-x64-Windows
name: XEngine_ProxyServiceApp-x86_64-Windows
path: XEngine_Release/
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
ref: 'develop'
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ name: ubuntu 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:
include:
- os: ubuntu-22.04
#- os: ubuntu-24.04
- os: ubuntu-24.04
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -39,14 +38,28 @@ jobs:
git submodule init
git submodule update

# 设置依赖库的环境变量
- name: Set up Dependency Environment Variables
- name: Set up Dependency ubuntu24.04 Environment
if: matrix.os == 'ubuntu-24.04'
run: |
cd libxengine
chmod 777 *
sudo ./XEngine_LINEnv.sh -i 3
cd ..
#编译
- name: Set up Dependency ubuntu22.04 Environment
if: matrix.os == 'ubuntu-22.04'
run: |
cd libxengine
chmod 777 *
sudo ./XEngine_LINEnv.sh -i 0

latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_x86-64.zip
unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
cd XEngine_UBuntu_22.04_x86-64

sudo cp -rf ./XEngine_Include /usr/local/include
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
sudo ldconfig

- name: make
run: |
cd XEngine_Source
Expand All @@ -63,8 +76,15 @@ jobs:
cd XEngine_Release
./XEngine_ProxyServiceApp -t

- name: Upload folder as artifact with ubuntu
- name: Upload folder as artifact with ubuntu22.04
if: matrix.os == 'ubuntu-22.04'
uses: actions/upload-artifact@v4
with:
name: XEngine_ProxyServiceApp-x86_64-Ubuntu-22.04
path: XEngine_Release/
- name: Upload folder as artifact with ubuntu24.04
if: matrix.os == 'ubuntu-24.04'
uses: actions/upload-artifact@v4
with:
name: XEngine_ProxyServiceApp-x64-Ubuntu
name: XEngine_ProxyServiceApp-x86_64-Ubuntu-24.04
path: XEngine_Release/
Loading
Loading