From 8f8064c8faad59f4365ef0cb68fc9d627a8b24c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Florczak?= Date: Fri, 17 Jan 2025 19:49:41 +0100 Subject: [PATCH] Add ARM builds to the pipeline --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37ef28881d..0efa8f610d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,8 @@ on: name: Continuous integration jobs: - ubuntu-build: - name: Ubuntu + ubuntu-build-x86_64: + name: Ubuntu x86_64 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -19,9 +19,9 @@ jobs: with: path: | build - key: ${{ runner.os }}-cmake-build-${{ github.sha }} + key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }} restore-keys: | - ${{ runner.os }}-cmake-build- + ${{ runner.os }}-${{ runner.arch }}-cmake-build- - name: Install dependencies run: sudo apt-get update && sudo apt-get install -y libasound2-dev @@ -42,6 +42,41 @@ jobs: - name: Build run: cmake --build build --parallel "$(nproc)" + ubuntu-build-arm: + name: Ubuntu ARM + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Cache CMake build directory + uses: actions/cache@v4 + with: + path: | + build + key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-cmake-build- + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y + libasound2-dev + libgl-dev + libglu1-mesa-dev + libgtk-3-dev + libjack-dev + libmad0-dev + libpulse-dev + libudev-dev + libxinerama-dev + libx11-dev + libxrandr-dev + libxtst-dev + nasm + - name: Configure + run: cmake -B build -DWITH_FFMPEG_JOBS="$(nproc)" -DWITH_MINIMAID=OFF + - name: Build + run: cmake --build build --parallel "$(nproc)" + macos-build-arm64: name: macOS (M1) runs-on: macos-latest