Skip to content

Prepare Release

Prepare Release #2

name: Prepare Release
on:
workflow_dispatch:
inputs:
last_release:
description: "Previous Xtensa Rust release version"
required: true
default: '1.74.0.0'
next_release:
description: "Next Xtensa Rust release version"
required: true
default: "1.74.0.0"
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
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.next_release }}
release_name: Release ${{ github.event.inputs.next_release }}
draft: true
prerelease: true
check-selfhoste-builders:
name: Check builders
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "macos-m1-self-hosted", "macos-x86_64-self-hosted", "x86_64-pc-windows-gnu-self-hosted", "windows-x86_64-self-hosted" ]
steps:
- name: Simple test
run: echo "Test"