Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .github/workflows/build-companion-firmwares.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/build-repeater-firmwares.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/build-room-server-firmwares.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v6

- name: Setup Build Environment
uses: ./.github/actions/setup-build-environment

- name: Run Unit Tests
run: pio test -e native -vv

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v7
with:
name: test-results
path: .pio/build/native/

build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
environment:
- Heltec_v3_companion_radio_ble
- RAK_4631_companion_radio_ble
- LilyGo_T3S3_sx1276_companion_radio_usb
- Xiao_rp2040_companion_radio_usb
- wio-e5-mini_repeater
- LilyGo_Tlora_C6_repeater_
- wio_wm1110_room_server
- Tbeam_SX1262_room_server
steps:
- name: Clone Repo
uses: actions/checkout@v6

- name: Setup Build Environment
uses: ./.github/actions/setup-build-environment

- name: Build ${{ matrix.environment }}
run: pio run -e ${{ matrix.environment }}
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: Build and deploy Docs site to GitHub Pages
name: Docs

on:
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write

jobs:

github-pages:
name: Build and Deploy Docs
runs-on: ubuntu-latest
steps:

- name: Checkout Repo
uses: actions/checkout@v6

Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/pr-build-check.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release Firmwares

on:
workflow_dispatch:
push:
tags:
- 'companion-*'
- 'repeater-*'
- 'room-server-*'

permissions:
contents: write

jobs:

release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v6

- name: Setup Build Environment
uses: ./.github/actions/setup-build-environment

- name: Determine Build Target
id: target
run: |
case "${GITHUB_REF_NAME}" in
companion-*)
echo "cmd=build-companion-firmwares" >> "$GITHUB_OUTPUT"
echo "name=Companion Firmware" >> "$GITHUB_OUTPUT"
;;
repeater-*)
echo "cmd=build-repeater-firmwares" >> "$GITHUB_OUTPUT"
echo "name=Repeater Firmware" >> "$GITHUB_OUTPUT"
;;
room-server-*)
echo "cmd=build-room-server-firmwares" >> "$GITHUB_OUTPUT"
echo "name=Room Server Firmware" >> "$GITHUB_OUTPUT"
;;
*)
echo "cmd=build-firmwares" >> "$GITHUB_OUTPUT"
echo "name=Firmware" >> "$GITHUB_OUTPUT"
;;
esac

- name: Build Firmwares
env:
FIRMWARE_VERSION: ${{ env.GIT_TAG_VERSION || 'dev' }}
run: /usr/bin/env bash build.sh ${{ steps.target.outputs.cmd }}

- name: Upload Workflow Artifacts
uses: actions/upload-artifact@v7
with:
name: firmwares
path: out

- name: Create Release
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ steps.target.outputs.name }} ${{ env.GIT_TAG_VERSION }}
body: ""
draft: true
files: out/*
31 changes: 0 additions & 31 deletions .github/workflows/run-unit-tests.yml

This file was deleted.