update:arm64 and rocky ci #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ubuntu Arm64 build workflows | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| paths: | |
| - 'XEngine_Source/**' | |
| - 'XEngine_Release/**' | |
| - '.github/**' | |
| permissions: | |
| contents: read | |
| 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: 'master' | |
| - 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 -y | |
| git config --global --add safe.directory /workspace | |
| git submodule init | |
| git submodule update | |
| git clone https://github.com/libxengine/libxengine.git | |
| cd libxengine | |
| chmod 777 * | |
| ./XEngine_LINEnv.sh -i 3 | |
| cd .. | |
| cd XEngine_Source | |
| make ARCH=Arm64 RELEASE=1 | |
| make FLAGS=InstallAll | |
| make FLAGS=CleanAll | |
| cd .. | |
| cd XEngine_Release | |
| ./XEngine_CenterApp -t | |
| ./XEngine_Http2App -t | |
| ./XEngine_HttpApp -t | |
| ./XEngine_SimpleApp -t | |
| ./XEngine_WebSocketApp -t ' |