1- name : centos build workflows
1+ name : opensuse build workflows
22
33on :
44 push :
55 branches :
6- - ' develop1 '
6+ - ' develop '
77 paths :
88 - ' XEngine_Source/**'
99 - ' XEngine_Release/**'
@@ -16,78 +16,72 @@ jobs:
1616 build :
1717 runs-on : ${{ matrix.runner }}
1818 container :
19- image : quay.io/centos/centos :${{ matrix.stream }}
20- options : --platform ${{ matrix.platform }}
19+ image : opensuse/leap :${{ matrix.version }}
20+ options : --platform= ${{ matrix.platform }}
2121 strategy :
2222 matrix :
2323 include :
2424 - arch : amd64
2525 runner : ubuntu-24.04
2626 platform : linux/amd64
27+ version : 16.0
2728 artifact : x86-64
28- version : 9
29- stream : stream9
30- - arch : amd64
31- runner : ubuntu-24.04
32- platform : linux/amd64
33- artifact : x86-64
34- version : 10
35- stream : stream10
3629 - arch : arm64
3730 runner : ubuntu-24.04-arm
3831 platform : linux/arm64
32+ version : 16.0
3933 artifact : Arm64
40- version : 9
41- stream : stream9
42- - arch : arm64
43- runner : ubuntu-24.04-arm
44- platform : linux/arm64
45- artifact : Arm64
46- version : 10
47- stream : stream10
4834
4935 steps :
5036 - name : Checkout main repository code
5137 uses : actions/checkout@v7
38+ with :
39+ ref : ' develop'
5240
5341 - name : sub module checkout (opensource)
5442 uses : actions/checkout@v7
5543 with :
5644 repository : libxengine/XEngine_OPenSource
5745 path : XEngine_Source/XEngine_DependLibrary
5846
59- - name : Set TERM variable
60- run : echo "TERM=xterm" >> $GITHUB_ENV
61-
6247 - name : install system package
6348 run : |
64- dnf update -y
65- dnf install gcc g++ make git jq unzip wget -y
49+ zypper --non-interactive update -y
50+ zypper install -y gcc gcc-c++ make git jq unzip wget
51+
52+ - name : Set TERM variable
53+ run : echo "TERM=xterm" >> $GITHUB_ENV
6654
6755 - name : install xengine library
56+ env :
57+ GH_TOKEN : ${{ github.token }}
6858 run : |
69- latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
70- wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_ ${{ matrix.version }}_${{ matrix.artifact }}.zip
71- unzip ./XEngine_RockyLinux_ ${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_ ${{ matrix.version }}_${{ matrix.artifact }}
72- cd XEngine_RockyLinux_ ${{ matrix.version }}_${{ matrix.artifact }}
59+ latest_tag=$(curl -s -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
60+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_OpenSuse_ ${{ matrix.version }}_${{ matrix.artifact }}.zip
61+ unzip ./XEngine_OpenSuse_ ${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_OpenSuse_ ${{ matrix.version }}_${{ matrix.artifact }}
62+ cd XEngine_OpenSuse_ ${{ matrix.version }}_${{ matrix.artifact }}
7363
7464 chmod 777 *
7565 ./XEngine_LINEnv.sh -i 3
76-
7766 - name : make
78- run : |
67+ run : |
7968 cd XEngine_Source
69+ make
70+ make FLAGS=InstallAll
71+ make FLAGS=CleanAll
72+
8073 make RELEASE=1
8174 make FLAGS=InstallAll
8275 make FLAGS=CleanAll
83- cd ..
76+
8477 - name : test
8578 run : |
8679 cd XEngine_Release
8780 ./XEngine_AuthorizeService -t
8881
89- - name : Upload folder as artifact
82+ - name : Upload folder as artifact with OPensuse
9083 uses : actions/upload-artifact@v7
9184 with :
92- name : XEngine_AuthorizeService-CentOS_${{ matrix.version }}_${{ matrix.artifact }}
93- path : XEngine_Release/
85+ name : XEngine_AuthorizeService-OPensuse_${{ matrix.version }}_${{ matrix.artifact }}
86+ path : XEngine_Release/
87+ retention-days : 1
0 commit comments