2023-11-18 14:12:34 +00:00
|
|
|
name: Build Raspbian
|
|
|
|
|
|
|
|
on: workflow_call
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-raspbian:
|
|
|
|
runs-on: [self-hosted, linux, ARM64]
|
|
|
|
steps:
|
2024-05-20 04:29:43 +00:00
|
|
|
- name: Install libbluetooth
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-11-16 04:01:41 +00:00
|
|
|
sudo apt-get update -y --fix-missing
|
2024-12-23 03:25:48 +00:00
|
|
|
sudo apt-get install -y libbluetooth-dev libgpiod-dev libyaml-cpp-dev openssl libssl-dev libulfius-dev liborcania-dev libusb-1.0-0-dev libi2c-dev
|
2024-05-20 04:29:43 +00:00
|
|
|
|
2023-11-18 17:04:21 +00:00
|
|
|
- name: Checkout code
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-18 17:04:21 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
|
|
|
|
|
|
- name: Upgrade python tools
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install -U platformio adafruit-nrfutil
|
|
|
|
pip install -U meshtastic --pre
|
|
|
|
|
|
|
|
- name: Upgrade platformio
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
pio upgrade
|
2023-11-18 14:12:34 +00:00
|
|
|
|
|
|
|
- name: Build Raspbian
|
|
|
|
run: bin/build-native.sh
|
|
|
|
|
|
|
|
- name: Get release version string
|
|
|
|
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
|
|
|
id: version
|
|
|
|
|
|
|
|
- name: Store binaries as an artifact
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-11-18 14:12:34 +00:00
|
|
|
with:
|
2023-11-18 17:04:21 +00:00
|
|
|
name: firmware-raspbian-${{ steps.version.outputs.version }}.zip
|
2024-05-13 08:47:40 +00:00
|
|
|
overwrite: true
|
2023-11-18 14:12:34 +00:00
|
|
|
path: |
|
2024-05-20 01:39:11 +00:00
|
|
|
release/meshtasticd_linux_aarch64
|
2023-11-18 17:41:33 +00:00
|
|
|
bin/config-dist.yaml
|