Skip to content

v1.9.5

v1.9.5 #45

Workflow file for this run

name: Build
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: bun-linux-x64
artifact: meshtastic-cli-linux-x64
- os: ubuntu-latest
target: bun-linux-arm64
artifact: meshtastic-cli-linux-arm64
- os: macos-latest
target: bun-darwin-x64
artifact: meshtastic-cli-darwin-x64
- os: macos-latest
target: bun-darwin-arm64
artifact: meshtastic-cli-darwin-arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build executable
run: bun build src/index.ts --compile --target=${{ matrix.target }} --outfile=${{ matrix.artifact }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: artifacts/**/*
generate_release_notes: true