-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build debian package with github actions
Build debian package for architectures amd64, armhf and arm64 with github actions. Default build settings are used and linked against libraries of the respective debian version. New github action build-rust-deb-action is used that leverages cargo-deb in a dockerized environment.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: build librespot debian package for stable | ||
|
||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- '*.md' | ||
|
||
jobs: | ||
build-librespot-debs: | ||
strategy: | ||
matrix: | ||
architecture: [amd64, armhf, arm64] | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: build-rust-deb-action | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: librespot-org/librespot | ||
path: librespot | ||
- uses: catango/build-rust-deb-action@master | ||
id: build | ||
with: | ||
host-build-deps: libclang-14-dev cmake | ||
target-build-deps: libasound2-dev | ||
target-arch: ${{ matrix.architecture }} | ||
# bindget-cli 0.71 breaks build | ||
rust-buildtools: [email protected] | ||
source-dir: librespot | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: librespot-${{ matrix.architecture }} | ||
path: ${{ steps.build.outputs.artifact-dir }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters