feat(ci): Lint + Build for aarch64 (#1581)
* feat(ci): Lint for aarch64 * feat(cd): Build release for aarch64 * doc: Update CHANGELOG
This commit is contained in:
committed by
GitHub
parent
0b4d4f7e7e
commit
05a985cfe3
15
.github/workflows/cd.yml
vendored
15
.github/workflows/cd.yml
vendored
@@ -13,16 +13,19 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
name: Publishing ${{ matrix.build_target }}
|
name: Publishing ${{ matrix.build_target }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
container: ${{ matrix.container }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- build_target: linux-x86_64
|
- build_target: linux-x86_64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
container: rust
|
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
features: ''
|
features: ''
|
||||||
dependencies: 'libpulse-dev libdbus-1-dev libncursesw5-dev libxcb-shape0-dev libxcb-xfixes0-dev'
|
dependencies: 'libpulse-dev libdbus-1-dev libncursesw5-dev libxcb-shape0-dev libxcb-xfixes0-dev'
|
||||||
|
- build_target: linux-arm64
|
||||||
|
os: ubuntu-24.04-arm
|
||||||
|
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
|
- build_target: macos-x86_64
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
@@ -53,17 +56,17 @@ jobs:
|
|||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: brew install portaudio pkg-config
|
run: brew install portaudio pkg-config
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
if: startsWith(matrix.build_target, 'linux-')
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
apt update
|
sudo apt update
|
||||||
apt install -y ${{ matrix.dependencies }}
|
sudo apt install -y ${{ matrix.dependencies }}
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/
|
~/.cargo/registry/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Running cargo build
|
- name: Running cargo build
|
||||||
run: cargo build --release --target ${{ matrix.target }} ${{ matrix.features }}
|
run: cargo build --release --target ${{ matrix.target }} ${{ matrix.features }}
|
||||||
- name: Extract git tag
|
- name: Extract git tag
|
||||||
|
|||||||
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -19,17 +19,18 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- build_target: linux-x86_64
|
- build_target: linux-x86_64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
artifact_suffix: linux-x86_64
|
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
features: ''
|
features: ''
|
||||||
|
- build_target: linux-arm64
|
||||||
|
os: ubuntu-24.04-arm
|
||||||
|
target: aarch64-unknown-linux-gnu
|
||||||
|
features: ''
|
||||||
- build_target: macos-aarch64
|
- build_target: macos-aarch64
|
||||||
os: macos-14
|
os: macos-14
|
||||||
artifact_suffix: macos-aarch64
|
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
features: '--no-default-features --features rodio_backend,pancurses_backend'
|
features: '--no-default-features --features rodio_backend,pancurses_backend'
|
||||||
- build_target: windows-x86_64
|
- build_target: windows-x86_64
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
artifact_suffix: windows-x86_64
|
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
features: '--no-default-features --features rodio_backend,pancurses_backend,share_clipboard,notify'
|
features: '--no-default-features --features rodio_backend,pancurses_backend,share_clipboard,notify'
|
||||||
steps:
|
steps:
|
||||||
@@ -43,7 +44,7 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Install rustup
|
- name: Install rustup
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -58,7 +59,7 @@ jobs:
|
|||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: brew install portaudio pkg-config
|
run: brew install portaudio pkg-config
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install libpulse-dev libdbus-1-dev libncursesw5-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
sudo apt install libpulse-dev libdbus-1-dev libncursesw5-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
- `%artist` formatting option to only show single artist name
|
- `%artist` formatting option to only show single artist name
|
||||||
|
- Build release for aarch64 on Linux
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user