File tree Expand file tree Collapse file tree 4 files changed +7
-21
lines changed
Expand file tree Collapse file tree 4 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 2525 with :
2626 ref : ' master'
2727
28- # 检出依赖的xengine仓库到指定的xengine目录
2928 - name : Checkout dependency repository (xengine)
3029 uses : actions/checkout@v4
3130 with :
3736 git submodule init
3837 git submodule update
3938
40- # 设置依赖库的环境变量
4139 - name : Set up Dependency x86_64 Environment
4240 run : |
4341 cd libxengine
6159 sudo mkdir -p /usr/local/lib
6260 sudo cp -rf ./XEngine_Include /usr/local/include
6361 sudo find ./XEngine_Mac -name "*.dylib" -exec cp {} /usr/local/lib \;
64- # 编译
62+
6563 - name : make debug
6664 run : |
6765 cd XEngine_Source
Original file line number Diff line number Diff line change 1212jobs :
1313 build :
1414 strategy :
15- # 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.
1615 fail-fast : false
1716 matrix :
1817 configuration : [Debug ,Release]
1918 platform : [x86 ,x64 ,ARM64]
2019
21- runs-on : windows-latest # 最新的 Windows 环境
20+ runs-on : windows-latest
2221
2322 steps :
24- # 检出您的主仓库代码
2523 - name : Checkout main repository code
2624 uses : actions/checkout@v4
2725 with :
2826 ref : ' master'
2927
30- # 检出依赖的xengine仓库到指定的xengine目录
3128 - name : Checkout dependency repository (xengine)
3229 uses : actions/checkout@v4
3330 with :
4037 git submodule update
4138 shell : pwsh
4239
43- # 设置依赖库的环境变量
4440 - name : Set up Dependency x86_64 Environment
4541 if : matrix.platform == 'x64'
4642 run : |
7470 echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
7571 echo "XENGINE_LibArm64=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
7672 shell : pwsh
77-
78- # 配置 MSBuild 的路径,准备构建 VC++ 项目
73+
7974 - name : Setup MSBuild
8075 uses : microsoft/setup-msbuild@v2
81- # 编译
8276 - name : Build Solution
8377 run : msbuild XEngine_Source/XEngine.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
8478
Original file line number Diff line number Diff line change @@ -26,16 +26,14 @@ jobs:
2626 platform : linux/amd64
2727 artifact_suffix : x86-64
2828 - arch : arm64
29- runner : ubuntu-24.04-arm # 注意:GitHub Actions 可能没有直接的 ubuntu-24.04-arm 运行器,你可能需要使用支持 ARM 的自托管运行器或选择其他支持 ARM 的 GitHub 托管运行器,例如 ubuntu-latest 并指定 ARM 架构。这里暂时保留,但请注意检查可用性。如果使用 GitHub 托管的 ARM 运行器,可能不需要指定 container.options --platform。
29+ runner : ubuntu-24.04-arm
3030 platform : linux/arm64
3131 artifact_suffix : Arm64
3232
3333 steps :
34- # 检出您的主仓库代码
3534 - name : Checkout main repository code
3635 uses : actions/checkout@v4
3736
38- # 检出依赖的xengine仓库到指定的xengine目录
3937 - name : Checkout dependency repository (xengine)
4038 uses : actions/checkout@v4
4139 with :
5250 run : |
5351 dnf update -y
5452 dnf install gcc g++ make git jq unzip -y
55- # 设置依赖库的环境变量
53+
5654 - name : Set up Dependency rocky linux Environment
5755 run : |
5856 cd libxengine
6866 cp -rf ./XEngine_Include /usr/local/include
6967 find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
7068 ldconfig
71- # 编译
69+
7270 - name : make
7371 run : |
7472 cd XEngine_Source
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ permissions:
1515jobs :
1616 build :
1717 strategy :
18- # 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.
1918 fail-fast : false
2019 matrix :
2120 include :
@@ -26,13 +25,11 @@ jobs:
2625 runs-on : ${{ matrix.os }}
2726
2827 steps :
29- # 检出您的主仓库代码
3028 - name : Checkout main repository code
3129 uses : actions/checkout@v4
3230 with :
3331 ref : ' master'
3432
35- # 检出依赖的xengine仓库到指定的xengine目录
3633 - name : Checkout dependency repository (xengine)
3734 uses : actions/checkout@v4
3835 with :
4441 git submodule init
4542 git submodule update
4643
47- # 设置依赖库的环境变量
4844 - name : Set up Dependency ubuntu24.04 Environment
4945 if : matrix.os == 'ubuntu-24.04'
5046 run : |
9692 sudo cp -rf ./XEngine_Include /usr/local/include
9793 sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
9894 sudo ldconfig
99- # 编译
95+
10096 - name : make x86
10197 if : matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
10298 run : |
You can’t perform that action at this time.
0 commit comments