Skip to content

Commit

Permalink
Add installation instructions to release body
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham authored and SergioGasquez committed Nov 5, 2024
1 parent 159d3c7 commit 26abdd7
Showing 1 changed file with 44 additions and 22 deletions.
66 changes: 44 additions & 22 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
last_release:
description: "Previous Xtensa Rust release version"
required: true
default: 'v1.82.0.3'
default: "v1.82.0.3"
next_release:
description: "Next Xtensa Rust release version"
required: true
Expand All @@ -16,27 +16,38 @@ jobs:
prepare-release:
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v4
# - name: Replace Xtensa Rust versions
# run: |
# find . -type f -exec sed -i 's/${{ github.event.inputs.last_release }}/${{ github.event.inputs.next_release }}/g' {} \;
# - name: Commit changes
# uses: EndBug/add-and-commit@v9
# with:
# default_author: github_actions
# add: '*'
# message: 'Bump Xtensa Rust version to ${{ github.event.inputs.next_release }}'
# new_branch: build/${{ github.event.inputs.next_release }}
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v5
# with:
# token: ${{ secrets.PAT }}
# branch: build/${{ github.event.inputs.next_release }}
# base: main
# delete-branch: false
# title: 'Update Xtensa Rust version to ${{ github.event.inputs.next_release }}'
# body:
# draft: false
- uses: actions/checkout@v4

- name: Replace Xtensa Rust versions
run: |
find . -type f -exec sed -i 's/${{ github.event.inputs.last_release }}/${{ github.event.inputs.next_release }}/g' {} \;
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
add: "*"
message: "Bump Xtensa Rust version to ${{ github.event.inputs.next_release }}"
new_branch: build/${{ github.event.inputs.next_release }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
branch: build/${{ github.event.inputs.next_release }}
base: main
delete-branch: false
title: "Update Xtensa Rust version to ${{ github.event.inputs.next_release }}"
body: ""
draft: false

- uses: mad9000/actions-find-and-replace-string@5
id: findandreplace
with:
source: ${{ github.event.inputs.next_release }}
find: "v"
replace: ""

- name: Create Release
uses: actions/create-release@v1
env:
Expand All @@ -45,3 +56,14 @@ jobs:
tag_name: ${{ github.event.inputs.next_release }}
release_name: Release ${{ github.event.inputs.next_release }}
prerelease: true
body: |
Rust Xtensa Toolchain ${{ github.event.inputs.next_release }} for ESP32, ESP32-S2, ESP32-S3.
Installation: https://docs.esp-rs.org/book/installation/riscv-and-xtensa.html
```
espup install --toolchain-version ${{ steps.findandreplace.outputs.value }}
source ~/export-esp.sh
```
Note: For the ESP32-C2, ESP32-C3, ESP32-C6, or ESP32-H2, you can use the Rust `nightly`, `stable`, or `esp` channels.

0 comments on commit 26abdd7

Please sign in to comment.