Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
223632d
modify:ci 1 day left time
xengine-qyt Feb 21, 2025
94391e2
update:depend library
xengine-qyt Feb 24, 2025
8e7131a
delete:aps temp file
xengine-qyt Feb 24, 2025
d20b69d
ci:add code ql
xengine-qyt Feb 24, 2025
64e2859
added:hardware code login support
xengine-qyt Feb 25, 2025
ad324f6
update:client module example
xengine-qyt Feb 25, 2025
3df7b9e
added:hardware login switch supported
xengine-qyt Feb 25, 2025
b4bcb42
added:type print set configure for log
xengine-qyt Feb 25, 2025
203acca
modify:user and code query merge to user functions
xengine-qyt Feb 25, 2025
cd541da
added:multi login for day supported
xengine-qyt Feb 25, 2025
5be803f
delete:not used time function for help module
xengine-qyt Feb 26, 2025
ec57315
added:tcp and websocket and http heartbeat supported
xengine-qyt Feb 26, 2025
21c5958
improved:heartbeat management insert and delete and active.
xengine-qyt Feb 26, 2025
4902653
fixed:heart insert incorrect
xengine-qyt Feb 26, 2025
8c1ff7a
update:sql file
xengine-qyt Feb 26, 2025
0e741ab
fixed:DBModule_SQLite_QueryLogin name is incorrect
xengine-qyt Feb 26, 2025
cc63f6c
ci:add rockylinux build
xengine-qyt Feb 26, 2025
aa5717d
update:rockybuild.yml
xengine-qyt Feb 26, 2025
2ab6d70
update:rockybuild.yml
xengine-qyt Feb 26, 2025
5d60dc9
update:rockybuild.yml
xengine-qyt Feb 26, 2025
9fd7035
update:ci rockybuild.yml
xengine-qyt Feb 27, 2025
c2fbd91
improved:parameter parse and more parameter supported
xengine-qyt Feb 27, 2025
1bdadf7
added:heartbeat client module support
xengine-qyt Feb 27, 2025
bf2e42d
improved:client offline for client module
xengine-qyt Feb 27, 2025
549dff1
fixed:not update heart time for client module
xengine-qyt Feb 28, 2025
3cb5c59
improved:client leave log
xengine-qyt Feb 28, 2025
aa5fc4c
update:example
xengine-qyt Feb 28, 2025
6fdeeb3
update:document
xengine-qyt Feb 28, 2025
9d11f89
update:configure file
xengine-qyt Mar 4, 2025
c1906f0
added:new ci release system supported
xengine-qyt Mar 5, 2025
4f50fe8
modify:vs arm64 build support
xengine-qyt Mar 5, 2025
6bee469
update:configure and build fixed
xengine-qyt Mar 5, 2025
8a643c0
ci:permission failure and vs copy failure
xengine-qyt Mar 5, 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
78 changes: 78 additions & 0 deletions .github/workflows/RockyArm64_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: rocky Arm64 build workflows

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

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-24.04
env:
IMAGE_NAME: rockylinux/rockylinux:9.5

strategy:
fail-fast: false
matrix:
arch: [linux/arm64]

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build ${{ matrix.arch }}
run: |
docker run --platform ${{ matrix.arch }} --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace ${{ env.IMAGE_NAME }} /bin/sh -c '
set -e
dnf update -y
dnf install --allowerasing git make g++ wget curl jq unzip -y

git config --global --add safe.directory /workspace
git submodule init
git submodule update

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_RockyLinux_9_Arm64.zip
unzip ./XEngine_RockyLinux_9_Arm64.zip -d ./XEngine_RockyLinux_9_Arm64
cd XEngine_RockyLinux_9_Arm64

chmod 777 ./XEngine_LINEnv.sh
./XEngine_LINEnv.sh -i 0

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

cd XEngine_Source
make ARCH=Arm64 RELEASE=1
make FLAGS=InstallAll
make FLAGS=CleanAll
cd ..

cd XEngine_Release
./XEngine_AuthorizeService -t
chown -R $(id -u):$(id -g) .
chmod -R a+r . '

- name: Upload folder as artifact with RockyLinux
uses: actions/upload-artifact@v4
with:
name: XEngine_AuthorizeService-RockyLinux-9-Arm64
path: XEngine_Release/
retention-days: 1
83 changes: 83 additions & 0 deletions .github/workflows/RockyX86_64_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: rocky x86_64 build workflows

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

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:9.5

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: libxengine

- name: sub module checkout (opensource)
uses: actions/checkout@v4
with:
repository: libxengine/XEngine_OPenSource
path: XEngine_Source/XEngine_Depend

- name: install system package
run: |
dnf update -y
dnf install gcc g++ make git jq unzip -y
# 设置依赖库的环境变量
- name: Set up Dependency rocky linux Environment
run: |
cd libxengine
chmod 777 *
./XEngine_LINEnv.sh -i 0
- name: install xengine library
run: |
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_RockyLinux_9_x86-64.zip
unzip ./XEngine_RockyLinux_9_x86-64.zip -d ./XEngine_RockyLinux_9_x86-64
cd XEngine_RockyLinux_9_x86-64

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

- name: make
run: |
cd XEngine_Source
make
make FLAGS=InstallAll
make FLAGS=CleanAll

make RELEASE=1
make FLAGS=InstallAll
make FLAGS=CleanAll

- name: test
run: |
cd XEngine_Release
./XEngine_AuthorizeService -t

- name: Upload folder as artifact with RockyLinux
uses: actions/upload-artifact@v4
with:
name: XEngine_AuthorizeService-RockyLinux-9-x86_64
path: XEngine_Release/
retention-days: 1
74 changes: 74 additions & 0 deletions .github/workflows/UbuntuArm64_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: ubuntu Arm64 build workflows

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

jobs:
build:
runs-on: ubuntu-24.04
env:
IMAGE_NAME: ubuntu:24.04

strategy:
fail-fast: false
matrix:
arch: [linux/arm64]

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build ${{ matrix.arch }}
run: |
docker run --platform ${{ matrix.arch }} --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace ${{ env.IMAGE_NAME }} /bin/sh -c '
set -e
apt update -y
apt install git make g++ wget curl jq unzip -y

git config --global --add safe.directory /workspace
git submodule init
git submodule update

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_24.04_Arm64.zip
unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
cd XEngine_UBuntu_24.04_Arm64

chmod 777 ./XEngine_LINEnv.sh
./XEngine_LINEnv.sh -i 0

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

cd XEngine_Source
make ARCH=Arm64 RELEASE=1
make FLAGS=InstallAll
make FLAGS=CleanAll
cd ..

cd XEngine_Release
./XEngine_AuthorizeService -t
chown -R $(id -u):$(id -g) .
chmod -R a+r . '

- name: Upload folder as artifact with ubuntu Arm64
uses: actions/upload-artifact@v4
with:
name: XEngine_AuthorizeService-Ubuntu-24.04-Arm64
path: XEngine_Release/
retention-days: 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ubuntu build workflows
name: ubuntu x86_64 build workflows

on:
push:
Expand Down Expand Up @@ -81,9 +81,11 @@ jobs:
with:
name: XEngine_AuthorizeService-x86_64-Ubuntu-22.04
path: XEngine_Release/
retention-days: 1
- name: Upload folder as artifact with ubuntu24.04
if: matrix.os == 'ubuntu-24.04'
uses: actions/upload-artifact@v4
with:
name: XEngine_AuthorizeService-x86_64-Ubuntu-24.04
path: XEngine_Release/
name: XEngine_AuthorizeService-Ubuntu-24.04-x86_64
path: XEngine_Release/
retention-days: 1
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 }}"
6 changes: 4 additions & 2 deletions .github/workflows/macbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ jobs:
with:
name: XEngine_AuthorizeService-x86_64-Mac
path: XEngine_Release/
retention-days: 1
- name: Upload folder as artifact with mac arm
if: matrix.os == 'macos-14'
uses: actions/upload-artifact@v4
with:
name: XEngine_AuthorizeService-Arm64-Mac
path: XEngine_Release/
name: XEngine_AuthorizeService-Mac-Arm64
path: XEngine_Release/
retention-days: 1
Loading
Loading