Actions: Build MacOS binary (#10319)
Preliminary CI for the MacOS builds Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -0,0 +1,51 @@
|
|||||||
|
name: Build MacOS Binary
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
macos_ver:
|
||||||
|
required: false
|
||||||
|
default: "26" # ARM64
|
||||||
|
type: string
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-MacOS:
|
||||||
|
runs-on: macos-${{ inputs.macos_ver }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
brew update
|
||||||
|
brew install platformio yaml-cpp libuv openssl@3 libusb argp-standalone pkg-config
|
||||||
|
|
||||||
|
- name: Get release version string
|
||||||
|
run: |
|
||||||
|
echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
||||||
|
id: version
|
||||||
|
|
||||||
|
- name: Build for MacOS
|
||||||
|
run: |
|
||||||
|
platformio run -e native-macos
|
||||||
|
env:
|
||||||
|
PKG_VERSION: ${{ steps.version.outputs.long }}
|
||||||
|
# Errors in this step should not fail the entire workflow while MacOS support is in development.
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: List output files
|
||||||
|
run: ls -lah .pio/build/native-macos/
|
||||||
|
|
||||||
|
- name: Store binaries as an artifact
|
||||||
|
uses: actions/upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: firmware-macos-${{ inputs.macos_ver }}-${{ steps.version.outputs.long }}
|
||||||
|
overwrite: true
|
||||||
|
path: |
|
||||||
|
.pio/build/native-macos/meshtasticd
|
||||||
@@ -116,6 +116,20 @@ jobs:
|
|||||||
build_location: local
|
build_location: local
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
MacOS:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
macos_ver:
|
||||||
|
- "26" # ARM64
|
||||||
|
# - '26-intel' # x86_64
|
||||||
|
- "15" # ARM64
|
||||||
|
# - '15-intel' # x86_64
|
||||||
|
uses: ./.github/workflows/build_macos_bin.yml
|
||||||
|
with:
|
||||||
|
macos_ver: ${{ matrix.macos_ver }}
|
||||||
|
# secrets: inherit
|
||||||
|
|
||||||
package-pio-deps-native-tft:
|
package-pio-deps-native-tft:
|
||||||
if: ${{ github.repository == 'meshtastic/firmware' && github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.repository == 'meshtastic/firmware' && github.event_name == 'workflow_dispatch' }}
|
||||||
uses: ./.github/workflows/package_pio_deps.yml
|
uses: ./.github/workflows/package_pio_deps.yml
|
||||||
@@ -286,6 +300,7 @@ jobs:
|
|||||||
- gather-artifacts
|
- gather-artifacts
|
||||||
- build-debian-src
|
- build-debian-src
|
||||||
- package-pio-deps-native-tft
|
- package-pio-deps-native-tft
|
||||||
|
# - MacOS
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user