Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
with:
toolchain: stable

- name: Install cross-compilers
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
sudo apt-get install -y \
gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu \
libssl-dev pkg-config libpipewire-0.3-dev

- name: Cache cargo registry
uses: actions/cache@v4
Expand All @@ -39,10 +41,12 @@ jobs:
- name: Build
run: cargo build --release

- name: Check binary exists
- name: Check binaries exist
run: |
if [ ! -f target/release/rm-pad ]; then
echo "Binary not found!"
exit 1
fi
ls -lh target/release/rm-pad
for b in rm-pad rm-screen; do
if [ ! -f "target/release/$b" ]; then
echo "Binary $b not found!"
exit 1
fi
ls -lh "target/release/$b"
done
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
with:
toolchain: stable

- name: Install cross-compilers
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
sudo apt-get install -y \
gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu \
libssl-dev pkg-config libpipewire-0.3-dev

- name: Cache cargo registry
uses: actions/cache@v4
Expand All @@ -43,14 +45,15 @@ jobs:
- name: Get version from Cargo.toml
id: version
run: |
VERSION=$(grep '^version' Cargo.toml | cut -d '"' -f 2)
VERSION=$(grep '^version' rm-pad/Cargo.toml | head -1 | cut -d '"' -f 2)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"

- name: Create release archive
run: |
mkdir -p release
cp target/release/rm-pad release/rm-pad
cp target/release/rm-screen release/rm-screen
cp README.md release/
cp rm-pad.toml.example release/
cp -r data release/
Expand Down
Loading
Loading