2024-06-05 14:34:30 +00:00
|
|
|
name: Build Native
|
|
|
|
|
|
|
|
on: workflow_call
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-native:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
|
|
|
2025-01-02 01:26:12 +00:00
|
|
|
- name: Setup native build
|
|
|
|
id: base
|
|
|
|
uses: ./.github/actions/setup-native
|
2024-06-05 14:34:30 +00:00
|
|
|
|
|
|
|
- name: Build Native
|
|
|
|
run: bin/build-native.sh
|
|
|
|
|
|
|
|
- name: Get release version string
|
2025-01-09 02:43:24 +00:00
|
|
|
run: echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
2024-06-05 14:34:30 +00:00
|
|
|
id: version
|
|
|
|
|
|
|
|
- name: Store binaries as an artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2025-01-09 02:43:24 +00:00
|
|
|
name: firmware-native-${{ steps.version.outputs.long }}.zip
|
2024-06-05 14:34:30 +00:00
|
|
|
overwrite: true
|
|
|
|
path: |
|
|
|
|
release/meshtasticd_linux_x86_64
|
|
|
|
bin/config-dist.yaml
|