Skip to content

Commit

Permalink
CI: cross fuckery 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ahihi committed Aug 2, 2024
1 parent 0f952c3 commit c376af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

- name: debugprint
run: |
find / -name alsa.pc
find / -name alsa.pc 2> /dev/null || true
- name: build
uses: houseabsolute/actions-rust-cross@v0
Expand Down
6 changes: 3 additions & 3 deletions Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ pre-build = [

[target.aarch64-unknown-linux-gnu]
pre-build = [
"export PKG_CONFIG_LIBDIR_aarch64_unknown_linux_gnu=/usr/lib/aarch64-unknown-linux-gnu/pkgconfig",
"export PKG_CONFIG_LIBDIR_aarch64_unknown_linux_gnu=/usr/lib/aarch64-linux-gnu/pkgconfig",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libasound2-dev:$CROSS_DEB_ARCH"
]

[target.x86_64-unknown-linux-musl]
pre-build = [
"export PKG_CONFIG_LIBDIR_x86_64_unknown_linux_musl=/usr/lib/x86_64-unknown-linux-musl/pkgconfig",
"export PKG_CONFIG_LIBDIR_x86_64_unknown_linux_musl=/usr/lib/x86_64-linux-musl/pkgconfig",
"apk add alsa-lib-dev"
]

[target.aarch64-unknown-linux-musl]
pre-build = [
"export PKG_CONFIG_LIBDIR_aarch64_unknown_linux_musl=/usr/lib/aarch64-unknown-linux-musl/pkgconfig",
"export PKG_CONFIG_LIBDIR_aarch64_unknown_linux_musl=/usr/lib/aarch64-linux-musl/pkgconfig",
"apk add alsa-lib-dev"
]

0 comments on commit c376af0

Please sign in to comment.