Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jul 4, 2024
1 parent 686b71c commit dc519cf
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,24 @@ jobs:
- 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
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
libssl-dev \
libasound2-dev \
libgtk-3-dev:arm64 \
libssl-dev:arm64 \
libasound2-dev:arm64 \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu \
pkg-config
- name: Setup cross-compilation environment
if: runner.os == 'Linux'
run: |
echo "PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig" >> $GITHUB_ENV
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
- name: Build Release (Linux)
if: runner.os == 'Linux'
Expand All @@ -70,6 +87,9 @@ jobs:
run: |
rustup target add x86_64-apple-darwin aarch64-apple-darwin
cargo build --release --target x86_64-apple-darwin --target aarch64-apple-darwin
env:
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
PKG_CONFIG_ALLOW_CROSS: 1

- name: Build Release (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit dc519cf

Please sign in to comment.