Skip to content

Commit 122b41b

Browse files
committed
update:workflow and make file
1 parent 5e369be commit 122b41b

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

.github/workflows/linuxbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
include:
1919
- os: ubuntu-22.04
20-
# - os: ubuntu-24.04
20+
#- os: ubuntu-24.04
2121
runs-on: ${{ matrix.os }}
2222

2323
steps:

.github/workflows/msbuild.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,25 @@ jobs:
5353
uses: microsoft/[email protected]
5454
#编译
5555
- name: Build Solution
56-
run: msbuild XEngine_Source/XEngine.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
56+
run: msbuild XEngine_Source/XEngine_StorageApp.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
57+
#测试
58+
- name: Conditional Step for x86 Release
59+
if: matrix.configuration == 'Release' && matrix.platform == 'x86'
60+
run: |
61+
cp -r XEngine_Source/Release/*.dll XEngine_Release/
62+
cp -r XEngine_Source/Release/*.exe XEngine_Release/
63+
cp -r XEngine_Source/VSCopy_x86.bat XEngine_Release/
64+
cd XEngine_Release
65+
./VSCopy_x86.bat
66+
./XEngine_AuthorizeService.exe -t
67+
shell: pwsh
68+
- name: Conditional Step for x86 Debug
69+
if: matrix.configuration == 'Debug' && matrix.platform == 'x86'
70+
run: |
71+
cp -r XEngine_Source/Debug/*.dll XEngine_Release/
72+
cp -r XEngine_Source/Debug/*.exe XEngine_Release/
73+
cp -r XEngine_Source/VSCopy_x86.bat XEngine_Release/
74+
cd XEngine_Release
75+
./VSCopy_x86.bat
76+
./XEngine_AuthorizeService.exe -t
77+
shell: pwsh

XEngine_Source/Makefile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,25 @@ XENGINE_MODULES = libjsoncpp.so libXEngine_InfoReport.so
2323
.PHONY:MakeAll
2424
MakeAll:$(XENGINE_MODULES)
2525

26+
27+
ifeq ($(PLATFORM),linux)
28+
FILEEXT = so
29+
else ifeq ($(PLATFORM),mac)
30+
FILEEXT = dylib
31+
endif
32+
2633
libjsoncpp.so:
27-
make -C $(DEPEND_JSONCPP_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
34+
ifeq ($(FLAGS), InstallAll)
35+
cp $(THIRD_JSONCPP_PATH)/libjsoncpp.$(FILEEXT) ../XEngine_Release/
36+
else
37+
make -C $(THIRD_JSONCPP_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
38+
endif
2839
libXEngine_InfoReport.so:
29-
make -C $(DEPEND_REPORT_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
40+
ifeq ($(FLAGS), InstallAll)
41+
cp $(THIRD_REPORT_PATH)/libXEngine_InfoReport.$(FILEEXT) ../XEngine_Release/
42+
else
43+
make -C $(THIRD_REPORT_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
44+
endif
3045

3146
libAuthorizeModule_CDKey.so:
3247
make -C $(AUTH_CDKEY_PATH) PLATFORM=$(PLATFORM) $(FLAGS)

0 commit comments

Comments
 (0)