Skip to content

Raspberry Pi package #22

Raspberry Pi package

Raspberry Pi package #22

Workflow file for this run

name: Raspberry Pi package
on:
release:
types: [published]
jobs:
build:
permissions: write-all
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Install rust dependencies
run: |
apt update && sudo apt install libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup target add wasm32-unknown-unknown
rustup target add aarch64-unknown-linux-gnu
cargo install tauri-cli trunk
- name: Install cross-compilers
run: |
apt update && apt install gcc-aarch64-linux-gnu -y
sudo dpkg --add-architecture arm64
mv .github/sources.list /etc/apt/sources.list
apt update && apt upgrade -y
- name: Install arm dependencies
run: |
sudo apt install libwebkit2gtk-4.0-dev:arm64 -y
sudo apt install libssl-dev:arm64 -y
- name: Build application
run: |
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/
cargo tauri build --config '{"package": {"version": "${{ github.event.release.tag_name }}"}}' --target aarch64-unknown-linux-gnu
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.event.release.tag_name }} ${{ github.workspace }}/target/release/bundle/deb/home-display*.deb