Skip to content

Commit

Permalink
Fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
akasaka committed Oct 27, 2024
1 parent d4eb5d4 commit 76b4e15
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ jobs:
build-everything:
runs-on: ubuntu-latest
name: Build All Binaries
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Git identity
run: |
git config --local user.name "Leønid Yakubovič"
git config --local user.email "[email protected]"
- name: Prepare environment
uses: ./.github/actions/prepare_pio
- name: Download AquesTalk
Expand Down Expand Up @@ -48,11 +54,19 @@ jobs:
- name: Switch to public branch
run: git checkout pub
- name: Merge changes from main
run: git merge main
run: git merge main --strategy-option theirs
- name: Move things to FVUDATA for publishing
run: ./helper/ci/create_fvudata.sh
- name: Add FVUDATA stuff into git and push
run: |
git add -f ./webroot/fvudata/*
git commit -m "Publish firmwares at $(git rev-parse --short HEAD)"
git push --force -u origin pub
git commit -m "ci: Publish firmwares at $(git rev-parse --short HEAD)"
git push --force -u origin pub
# Thanks to yet another weird limitation of Github Actions, we need to duplicate this action here
# https://github.com/orgs/community/discussions/25702
# Remove when a better solution is found
- name: Publish webroot via GitHub Pages
uses: rayluo/[email protected]
with:
source-directory: webroot
target-branch: gh-pages
3 changes: 2 additions & 1 deletion .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: Publish web

on:
push:
branches: ['pub']
branches: ['pub']
workflow_dispatch: null

jobs:
publish:
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ An ESP32-WROVER is required, because the firmware takes up 99.8% of an OTA parti

### Display (at least one required)

* Morio Denki 16101DS (see [below](#morio-denki-plasma-display-info), [driver](src/display//md_plasma.cpp), feature flag `HAS_OUTPUT_MD_PLASMA`)
* Winstar WEG010016A in 8-bit parallel mode ([driver](src/display/ws0010.cpp), feature flag `HAS_OUTPUT_WS0010`). Includes BFI (Black Frame Insertion) for smoother operation and dimming.
* Noritake ITRON GU-NNNx16-7000 series graphic VFDs in 8-bit parallel mode ([driver](src/display/gu7000.cpp), feature flag `HAS_OUTPUT_GU7000`)
* Morio Denki 16101DS (see [below](#morio-denki-plasma-display-info), [driver](src/display/md_plasma.cpp), feature flag `HAS_OUTPUT_MD_PLASMA`)
* Winstar (sometimes sold as Vishay) WEG010016A in 8-bit parallel mode ([driver](src/display/ws0010.cpp), feature flag `HAS_OUTPUT_WS0010`). Includes BFI (Black Frame Insertion) for smoother operation and dimming. Datasheet backup: [Controller](docs/reference/datasheet/winstar/WS0010.pdf), [display](docs/reference/datasheet/winstar/WEG010016ALPP5N00000.pdf)
* Noritake ITRON GU-NNNx16-7000 series graphic VFDs in 8-bit parallel mode ([driver](src/display/gu7000.cpp), feature flag `HAS_OUTPUT_GU7000`). Datasheet backup before the bundled CDR got completely rotten: [140x16-7000](docs/reference/datasheet/noritake_itron/s-gu140x16g-7000_j04.pdf), [140x16-7100](docs/reference/datasheet/noritake_itron/s-gu140x16g-7100_j00.pdf), [112x16](docs/reference/datasheet/noritake_itron/s-gu112x16g-7000_j04.pdf)
* *Planned:* [Akizuki Denshi K-875](https://akizukidenshi.com/img/contents/kairo/%E3%83%87%E3%83%BC%E3%82%BF/%E8%A1%A8%E7%A4%BA%E8%A3%85%E7%BD%AE/LED%E9%9B%BB%E5%85%89%E6%8E%B2%E7%A4%BA.pdf) ×4 for a 128x16 display (I couldn't resist not scooping some up in the Outlet Sale for 200 yen apiece). [Datasheet backup](docs/reference/datasheet/akizuki/LED電光掲示.pdf)

### Speaker (at least one required)

Expand All @@ -202,6 +203,7 @@ An ESP32-WROVER is required, because the firmware takes up 99.8% of an OTA parti
* `HAS_BLUETOOTH_LE`: automatically set on ESP32. Required for Switchbot-over-BLE. Uses Arduino-BLE and increases firmware size significantly.
* `HAS_OTAFVU`: OTA updates via ArduinoOTA. Currently disabled due to partition size constraints from the above.
* `HAS_SERIAL_MIDI`: Enable receiving MIDI data over serial. Makes the CPU a tad bit hotter so probably do not include this feature flag in production builds, unless you really want a MIDI powered alarm clock for some reason.
* `HAS_HTTPFVU`: OTA updates via HTTP from this repository's main branch. HTTPS is omitted for performance reasons, and the security is instead ensured using the highly secure [Ostrich algorithm](https://en.wikipedia.org/wiki/Ostrich_algorithm).

### Thermal sensors

Expand Down
Empty file modified helper/ci/create_fvudata.sh
100644 → 100755
Empty file.
8 changes: 0 additions & 8 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder

[env:PLASMA_OTA]
board = esp32dev
build_type = debug
build_flags = -DDEVICE_PLASMA_CLOCK ${common.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
upload_protocol = espota
upload_port = 192.168.1.144
upload_flags = --auth=plasma-otafvu

[env:OLED]
board = esp32dev
build_type = debug
Expand Down

0 comments on commit 76b4e15

Please sign in to comment.