Skip to content

Commit dbfc2be

Browse files
committed
Try Cross
1 parent f664918 commit dbfc2be

1 file changed

Lines changed: 5 additions & 22 deletions

File tree

.github/workflows/rpi-build.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,18 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v6
1717

18-
- name: Install system packages for GStreamer + ARM toolchain
19-
run: |
20-
sudo apt-get update
21-
sudo apt-get install -y \
22-
build-essential \
23-
cmake \
24-
pkg-config \
25-
libgstreamer1.0-dev \
26-
libgstreamer-plugins-base1.0-dev \
27-
gstreamer1.0-plugins-good \
28-
gstreamer1.0-plugins-bad \
29-
gstreamer1.0-plugins-ugly \
30-
gstreamer1.0-libav \
31-
gcc-arm-linux-gnueabihf \
32-
libc6-dev-armhf-cross \
33-
libpulse-dev \
34-
git \
35-
curl
36-
3718
- name: Install Rust and ARM target
3819
uses: actions-rs/toolchain@v1
3920
with:
4021
toolchain: stable
4122
target: arm-unknown-linux-gnueabihf
4223
override: true
4324

44-
- name: Build project
45-
run: |
46-
cargo build --release --target arm-unknown-linux-gnueabihf
25+
- name: Install cross
26+
run: cargo install cross
27+
28+
- name: Build with cross
29+
run: cross build --release --target arm-unknown-linux-gnueabihf
4730

4831
- name: Upload compiled binaries
4932
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)