chore(ci): bump softprops/action-gh-release from 1 to 2 (#11) #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: codi_bootload CI release builder | |
'on': push | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
create-release: | |
if: startsWith(github.ref, 'refs/tags/') | |
name: Release builder for CoDi bootloader (new) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
default: true | |
components: llvm-tools-preview | |
override: true | |
target: thumbv7em-none-eabihf | |
profile: minimal | |
- name: Install cargo-cross | |
uses: actions-rs/[email protected] | |
with: | |
crate: cross | |
version: latest | |
use-tool-cache: true | |
- name: Install cargo-binutils | |
uses: actions-rs/[email protected] | |
with: | |
crate: cargo-binutils | |
version: latest | |
use-tool-cache: true | |
- name: Build project (armv7) in release mode | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: >- | |
--all --release --locked --verbose --target=thumbv7em-none-eabihf | |
use-cross: true | |
- name: Strip the CoDi bootloader if the build is a release | |
run: cargo strip --release --bin codi_bootload | |
- name: Publish release artifacts | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: /home/runner/work/codi_bootload/target/thumbv7em-none-eabihf/release/codi_bootload | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |