different drag implementation #2
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
# disabled because it's not build for armv7l | |
# and it's not obvious how to make github actions build for armv7l | |
name: Raspberry Pi Build | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- 'v*' # Trigger on version tags | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
# Add these permissions at the top level of the workflow | |
permissions: | |
contents: write # This allows the workflow to create releases | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
npm_config_python: /usr/bin/python3 | |
container: | |
image: debian:bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install system dependencies | |
run: | | |
apt-get update | |
apt-get install -y python3 python3-pip build-essential zip | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Build for Raspberry Pi | |
run: npm run electron:build:pi | |
env: | |
NODE_OPTIONS: --max_old_space_size=512 | |
CI: false # This prevents treating warnings as errors | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pi-build | |
path: dist/ | |
- name: Install zip | |
run: apt-get update && apt-get install -y zip | |
- name: Create release archive | |
run: | | |
cd dist | |
zip -r ../bice-box-release.zip * | |
cd .. | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/v') # Only create release on version tags | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: bice-box-release.zip | |
draft: false | |
prerelease: false |