Skip to content

Raspberry Pi compile #8

Raspberry Pi compile

Raspberry Pi compile #8

Workflow file for this run

name: Raspberry Pi compile
on:
workflow_dispatch:
env:
VERSION: 2.0.0
jobs:
build:
strategy:
matrix:
arch: [aarch64, armv7l]
include:
- arch: aarch64
cpu: cortex-a72
deb: arm64
other: arm64
base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bookworm.img.xz
- arch: armv7l
cpu: cortex-a53
deb: armel
other: armel
base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv7-Bookworm.img.xz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pguyot/arm-runner-action@v2.5.2
with:
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
bind_mount_repository: true
image_additional_mb: 10240
optimize_image: false
commands: |
sudo rm -r node_modules
# 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 autoremove -y
apt-get install -y curl npm yarnpkg libwebkit2gtk-4.1-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
. "$HOME/.cargo/env"
# curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash
# Install framework specific packages
#sudo npm install --force -g npm@latest
#sudo npm install --force -g nodejs@latest
# Install Rust Nightly
# rustup default nightly # Only Enable for nightly builds
# Remove Yarn Lock
#rm yarn.lock
# Install frontend dependencies
yarn install
# Build the application
yarn run tauri build
# path Rosary-Music_1.0.0_amd64.deb
- name: Upload deb bundle
uses: actions/upload-artifact@v3
with:
name: Debian Bundle
path: ${{ github.workspace }}/src-tauri/target/release/bundle/deb/Rosary-Music_${{ env.VERSION }}_${{ matrix.deb }}.deb
- name: Upload rpm bundle
uses: actions/upload-artifact@v3
with:
name: RPM Bundle
path: ${{ github.workspace }}/src-tauri/target/release/bundle/rpm/Rosary-Music_${{ env.VERSION }}-1_${{ matrix.other }}.rpm