Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jul 4, 2024
1 parent 9be1a1b commit 799c039
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,22 @@ jobs:
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: |
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
libssl-dev \
libasound2-dev \
libglib2.0-dev \
pkg-config
- name: Install cross
if: runner.os == 'Linux'
run: |
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
libgtk-3-dev:arm64 libssl-dev:arm64 libasound2-dev:arm64 libglib2.0-dev:arm64 \
libgtk-3-dev libssl-dev libasound2-dev libglib2.0-dev
cargo install cross
- name: Build Release (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y gcc-${{ matrix.arch }}-linux-gnu g++-${{ matrix.arch }}-linux-gnu
cross build --target ${{ matrix.arch }}-unknown-linux-gnu --release
run: cross build --target ${{ matrix.arch }}-unknown-linux-gnu --release
env:
PKG_CONFIG_ALLOW_CROSS: 1
PKG_CONFIG_SYSROOT_DIR: /
working-directory: ./psst-gui
PKG_CONFIG_PATH: /usr/lib/${{ matrix.arch }}/pkgconfig:/usr/lib/pkgconfig
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_AR: aarch64-linux-gnu-ar

- name: Build Release (macOS)
if: runner.os == 'macOS'
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ opt-level = 2

[profile.dev.package.libsamplerate]
opt-level = 2

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
18 changes: 8 additions & 10 deletions psst-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,21 @@ Small and efficient graphical music player for Spotify network.

[package.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 \
libglib2.0-dev:$CROSS_DEB_ARCH
libgtk-3-dev \
libssl-dev \
libasound2-dev \
libglib2.0-dev
"""
]

[package.metadata.cross.target.aarch64-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 \
libglib2.0-dev:$CROSS_DEB_ARCH
libgtk-3-dev:arm64 \
libssl-dev:arm64 \
libasound2-dev:arm64 \
libglib2.0-dev:arm64
"""
]

Expand Down

0 comments on commit 799c039

Please sign in to comment.