From 693e82ffa4a91830de3712de4de14483a0a343c0 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Sun, 9 Feb 2025 11:34:17 +0100 Subject: [PATCH] Add a Linux/aarch64 workflow file. --- .github/workflows/linux_aarch64.yml | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/linux_aarch64.yml diff --git a/.github/workflows/linux_aarch64.yml b/.github/workflows/linux_aarch64.yml new file mode 100644 index 0000000..ef11725 --- /dev/null +++ b/.github/workflows/linux_aarch64.yml @@ -0,0 +1,45 @@ +name: Testbuild for Linux (aarch64) +run-name: testbuild_linux_aarch64 +on: + push: + branches: + - 'master' + pull_request: + types: + - edited + - opened + - synchronize +concurrency: + # Cancel concurrent workflows for the same PR or commit hash. + group: ${{github.workflow}}-${{github.event_name == 'pull_request' && github.head_ref || github.sha}} + cancel-in-progress: true +jobs: + build_ubuntu_aarch64: + runs-on: ubuntu-22.04-arm + strategy: + fail-fast: false + matrix: + include: + - env: ubuntu + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Build + run: | + # Public runners come with 4 CPUs. + make -j4 + - name: Create testbuild package + run: | + # Create release directory tree + mkdir -p publish/quake2-ctf-linux_aarch64-${{github.sha}}/misc/docs + # Copy release assets + cp -r release/* publish/quake2-ctf-linux_aarch64-${{github.sha}}/ + # Copy misc assets + cp LICENSE publish/quake2-ctf-linux_aarch64-${{github.sha}}/misc/docs/LICENSE.txt + cp README.md publish/quake2-ctf-linux_aarch64-${{github.sha}}/misc/docs/README.txt + - name: Upload testbuild package + uses: actions/upload-artifact@v4 + with: + name: quake2-ctf-linux_aarch64-${{github.sha}} + path: publish/ + if-no-files-found: error