Skip to content

Commit

Permalink
New build workflows (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed Aug 4, 2024
1 parent 5b3d150 commit 6a0c9c4
Show file tree
Hide file tree
Showing 34 changed files with 144 additions and 4,951 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-esp-web-tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build ESP Web Tools

on:
push:
branches:
- main
pull_request:
paths:
- 'esp-web-tools/**'
- '.github/workflows/build-esp-web-tools.yml'
workflow_dispatch:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-firmware:
name: Build ESP Web Tools Firmware
uses: esphome/workflows/.github/workflows/build.yml@main
with:
files: |
esp-web-tools/esp32.yaml
esp-web-tools/esp32c3.yaml
esp-web-tools/esp32s2.yaml
esp-web-tools/esp32s3.yaml
esp-web-tools/esp8266.yaml
esphome-version: 2024.7.3
combined-name: esp-web-tools
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }}
release-url: ${{ github.event_name == 'release' && github.event.release.url || '' }}
release-version: ${{ github.event_name == 'release' && github.event.release.tag_name || '' }}

upload:
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
name: Upload to R2
needs:
- build-firmware
uses: esphome/workflows/.github/workflows/upload.yml@main
with:
name: esp-web-tools
version: ${{ needs.build-firmware.outputs.version }}
secrets: inherit
46 changes: 46 additions & 0 deletions .github/workflows/build-esphome-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build ESPHome Web

on:
push:
branches:
- main
pull_request:
paths:
- 'esphome-web/**'
- '.github/workflows/build-esphome-web.yml'
workflow_dispatch:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-firmware:
name: Build ESPHome Web Firmware
uses: esphome/workflows/.github/workflows/build.yml@main
with:
files: |
esphome-web/esp32.yaml
esphome-web/esp32c3.yaml
esphome-web/esp32s2.yaml
esphome-web/esp32s3.yaml
esphome-web/esp8266.yaml
esphome-web/pico-w.yaml
esphome-version: 2024.7.3
combined-name: esphome-web
release-summary: ${{ github.event_name == 'release' && github.event.release.body || '' }}
release-url: ${{ github.event_name == 'release' && github.event.release.url || '' }}
release-version: ${{ github.event_name == 'release' && github.event.release.tag_name || '' }}

upload:
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
name: Upload to R2
needs:
- build-firmware
uses: esphome/workflows/.github/workflows/upload.yml@main
with:
name: esphome-web
version: ${{ needs.build-firmware.outputs.version }}
secrets: inherit
194 changes: 0 additions & 194 deletions .github/workflows/build.yml

This file was deleted.

13 changes: 5 additions & 8 deletions .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: YAML lint

# yamllint disable-line rule:truthy
on:
push:
branches: [main]
Expand All @@ -14,12 +13,10 @@ on:

jobs:
yamllint:
name: yamllint
name: 🧹 yamllint
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
- name: Run yamllint
uses: frenck/[email protected]
with:
strict: true
- name: ⤵️ Check out configuration from GitHub
uses: actions/[email protected]
- name: 🚀 Run yamllint
run: yamllint --strict .
2 changes: 1 addition & 1 deletion .yamllint
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

extends: default

ignore-from-file: .gitignore
Expand All @@ -17,3 +16,4 @@ rules:
indent-sequences: true
check-multi-line-strings: false
line-length: disable
truthy: disable
69 changes: 2 additions & 67 deletions bluetooth-proxy/esp32-generic-c3.yaml
Original file line number Diff line number Diff line change
@@ -1,67 +1,2 @@
substitutions:
name: esp32-bluetooth-proxy
friendly_name: Bluetooth Proxy

esphome:
name: ${name}
friendly_name: ${friendly_name}
min_version: 2024.6.0
name_add_mac_suffix: true
project:
name: esphome.bluetooth-proxy
version: "24.7.4.1"
platformio_options:
board_build.f_flash: 40000000L
board_build.flash_mode: dio
board_build.flash_size: 4MB

esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: n

wifi:
ap:

api:
logger:
improv_serial:

ota:
- platform: esphome
id: ota_esphome
- platform: http_request
id: ota_http_request

update:
- platform: http_request
id: update_http_request
name: Firmware
source: https://firmware.esphome.io/bluetooth-proxy/esp32-generic-c3/manifest.json

http_request:

dashboard_import:
package_import_url: github://esphome/firmware/bluetooth-proxy/esp32-generic-c3.yaml@main

esp32_ble_tracker:
scan_parameters:
# We currently use the defaults to ensure Bluetooth
# can co-exist with WiFi In the future we may be able to
# enable the built-in coexistence logic in ESP-IDF
active: true

bluetooth_proxy:
active: true

button:
- platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot

- platform: factory_reset
id: factory_reset_btn
name: Factory reset
packages:
moved: github://esphome/bluetooth-proxies/esp32-generic/esp32-generic-c3.yaml@main
Loading

0 comments on commit 6a0c9c4

Please sign in to comment.