Publish Raspberry Pi #3
This file contains hidden or 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
| name: Publish Raspberry Pi (arm64) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-arm64: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: arm64 | |
| - name: Build for arm64 | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| docker run --rm -t \ | |
| --platform linux/arm64 \ | |
| -v $PWD:/app \ | |
| -w /app \ | |
| node:18-bullseye \ | |
| bash -c " | |
| npm install && | |
| npm run postinstall && | |
| npx electron-rebuild && | |
| npm run build && | |
| npx electron-builder --arm64 --publish always | |
| " |