Skip to content

Commit

Permalink
feat(cd): Build release for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
hrkfdn committed Jan 23, 2025
1 parent f1f0e91 commit f338812
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CD

on:
push:
branches:
- "hf/arm64"
tags:
- "v*.*.*"

Expand All @@ -23,6 +25,12 @@ jobs:
target: x86_64-unknown-linux-gnu
features: ''
dependencies: 'libpulse-dev libdbus-1-dev libncursesw5-dev libxcb-shape0-dev libxcb-xfixes0-dev'
- build_target: linux-arm64
os: ubuntu-24.04-arm
artifact_suffix: linux-aarch64
target: aarch64-unknown-linux-gnu
features: ''
dependencies: 'libpulse-dev libdbus-1-dev libncursesw5-dev libxcb-shape0-dev libxcb-xfixes0-dev'
- build_target: macos-x86_64
os: macos-latest
target: x86_64-apple-darwin
Expand Down Expand Up @@ -55,15 +63,15 @@ jobs:
- name: Install Linux dependencies
if: startsWith(matrix.build_target, 'linux-')
run: |
apt update
apt install -y ${{ matrix.dependencies }}
sudo apt update
sudo apt install -y ${{ matrix.dependencies }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Running cargo build
run: cargo build --release --target ${{ matrix.target }} ${{ matrix.features }}
- name: Extract git tag
Expand Down

0 comments on commit f338812

Please sign in to comment.