Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jul 3, 2024
1 parent 68b53c0 commit bb9cf74
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ jobs:
run: cargo test
continue-on-error: true

- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update && sudo apt-get install -y libgtk-3-dev libssl-dev libasound2-dev libglib2.0-dev
- name: Build Release (Linux)
if: runner.os == 'Linux'
uses: houseabsolute/actions-rust-cross@v0
Expand Down
16 changes: 15 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,22 @@ opt-level = 2
[profile.dev.package.libsamplerate]
opt-level = 2

[workspace.metadata.cross.target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"""apt-get update && apt-get --assume-yes install \
libgtk-3-dev:$CROSS_DEB_ARCH \
libssl-dev:$CROSS_DEB_ARCH \
libasound2-dev:$CROSS_DEB_ARCH
"""
]

[workspace.metadata.cross.target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libglib2.0-dev:$CROSS_DEB_ARCH"
"""apt-get update && apt-get --assume-yes install \
libgtk-3-dev:$CROSS_DEB_ARCH \
libssl-dev:$CROSS_DEB_ARCH \
libasound2-dev:$CROSS_DEB_ARCH
"""
]

0 comments on commit bb9cf74

Please sign in to comment.