Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 Builds CICD #2

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/build-ydms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,45 @@ jobs:
name: opus-linux
path: ${{ steps.buildoutput.outputs.build-output-dir }}/**/*.so

Build-Linux-Arm64:
name: Builds Opus for Linux on ARM64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
export CMAKE_CXX_COMPILER=arm-linux-gnueabi-g++

- name: Download models
run: ./autogen.sh

- name: Create build directory
run: mkdir build

- name: Create build out variable
id: buildoutput
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"

- name: Configure CMake
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }}
env:
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
run: cmake .. -DBUILD_SHARED_LIBS=ON

- name: Build Opus for Linux
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }}
run: cmake --build . --config Release --target package

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: opus-linux-arm64
path: ${{ steps.buildoutput.outputs.build-output-dir }}/**/*.so

Build-Windows:
name: Builds Opus for Windows
runs-on: windows-latest
Expand Down
Loading