- GHA release workflow is updated to use an action for uploading all assets. The action docs say it updates a release if one already exists, and since this triggers on release and we pass a release tag we know the release already exists. - GHA release candidate workflow is updated to auto-publish a pre-release release on push to a `release/**` branch. A script is added and used to generate a release message made up of the commits since the last release of any kind. - ACT profiles are added to allow locally testing these workflows without needing to push and wait for GHA to run. - Docs are updated to note how to test the workflows locally.
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Compile Release
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
ref: ${{ github.event.release.tag_name }}
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.14"
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
version: "latest"
|
|
enable-cache: false
|
|
|
|
- name: Install PlatformIO Core
|
|
run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip
|
|
|
|
- name: Build CrossPoint
|
|
run: pio run -e gh_release
|
|
|
|
- name: Patch min_chip_rev_full to 0
|
|
run: python3 scripts/patch_min_chip_rev.py .pio/build/gh_release/firmware.bin
|
|
|
|
- name: Upload release assets
|
|
if: ${{ env.ACT != 'true' }}
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ github.event.release.tag_name }}
|
|
files: |
|
|
.pio/build/gh_release/bootloader.bin
|
|
.pio/build/gh_release/firmware.bin
|
|
.pio/build/gh_release/firmware.elf
|
|
.pio/build/gh_release/firmware.map
|
|
.pio/build/gh_release/partitions.bin
|
|
fail_on_unmatched_files: true
|