From 0f47fbfbbf590eca1bf3c00e85f3433b628b4f1f Mon Sep 17 00:00:00 2001 From: Haffi Mazhar Date: Fri, 20 Feb 2026 08:43:25 +0000 Subject: [PATCH] update workflows for linux arm64 --- .github/workflows/builds.yml | 12 ++++++++---- .github/workflows/make-release.yml | 9 ++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index acf394c..bf81b8c 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -46,6 +46,10 @@ jobs: name: linux-x64 build_cmd: ./build.sh release-examples build_dir: build-release + - os: ubuntu-24.04-arm + name: linux-arm64 + build_cmd: ./build.sh release-examples + build_dir: build-release - os: macos-latest name: macos-arm64 build_cmd: ./build.sh release-examples @@ -116,16 +120,16 @@ jobs: path: | ~/.cargo/registry ~/.cargo/git - key: ${{ runner.os }}-cargo-reg-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo-reg- + key: ${{ runner.os }}-${{ matrix.name }}-cargo-reg-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-${{ matrix.name }}-cargo-reg- - name: Cache Cargo target uses: actions/cache@v4 with: path: client-sdk-rust/target - key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ matrix.name }}-cargo-target-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-cargo-target- + ${{ runner.os }}-${{ matrix.name }}-cargo-target- # ---------- Build environment setup ---------- - name: Set Linux build environment diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index b3edaec..cf4a0a0 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -27,6 +27,9 @@ jobs: - os: ubuntu-latest name: linux-x64 generator: Ninja + - os: ubuntu-24.04-arm + name: linux-arm64 + generator: Ninja - os: macos-latest name: macos-arm64 generator: Ninja @@ -129,8 +132,8 @@ jobs: path: | ~/.cargo/registry ~/.cargo/git - key: ${{ runner.os }}-cargo-reg-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo-reg- + key: ${{ runner.os }}-${{ matrix.name }}-cargo-reg-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-${{ matrix.name }}-cargo-reg- # ---------- Build environment setup ---------- - name: Set Linux build environment @@ -255,7 +258,7 @@ jobs: ls -la # Create tar.gz for Linux and macOS - for platform in linux-x64 macos-arm64; do + for platform in linux-x64 linux-arm64 macos-arm64; do dirName="livekit-sdk-${platform}-${VERSION}" if [[ -d "${dirName}" ]]; then echo "Creating archive for ${platform}..."