-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e641cdd
commit 6213b9e
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Raspberry Pi compile | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./src/ui | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pguyot/arm-runner-action@v2.5.2 | ||
with: | ||
base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bookworm.img.xz | ||
cpu: cortex-a53 | ||
bind_mount_repository: true | ||
image_additional_mb: 10240 | ||
optimize_image: false | ||
commands: | | ||
# Rust complains (rightly) that $HOME doesn't match eid home | ||
export HOME=/root | ||
# Workaround to CI worker being stuck on Updating crates.io index | ||
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse | ||
# Install setup prerequisites | ||
apt-get update -y --allow-releaseinfo-change | ||
apt-get upgrade -y | ||
apt-get autoremove -y | ||
apt-get install curl | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
. "$HOME/.cargo/env" | ||
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash | ||
# Install framework specific packages | ||
apt-get install -y nodejs | ||
npm install vue@latest eslint-config-next@latest | ||
# Install build tools and tauri-cli requirements | ||
apt-get install -y libwebkit2gtk-4.0-dev build-essential wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | ||
cargo install tauri-cli | ||
# Install frontend dependencies | ||
npm install | ||
# Build the application | ||
cargo tauri build | ||
- name: Upload deb bundle | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Debian Bundle | ||
path: ${{ github.workspace }}/src/ui/target/release/bundle/deb/bs5-controller-ui_0.1.0_arm64.deb |