mirror of
https://github.com/esp-rs/espflash.git
synced 2026-04-15 02:50:04 +00:00
* Make clippy happy * Update to macos-13 to fix the crashing CI job * Update CHANGELOG.md Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com> --------- Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>
81 lines
2.0 KiB
YAML
81 lines
2.0 KiB
YAML
name: Release
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
release:
|
|
name: ${{ matrix.platform.target }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
# Linux
|
|
- os: "ubuntu-22.04"
|
|
target: "x86_64-unknown-linux-gnu"
|
|
arch: "x86_64"
|
|
- os: "ubuntu-22.04"
|
|
target: "x86_64-unknown-linux-musl"
|
|
arch: "x86_64"
|
|
- os: "ubuntu-22.04"
|
|
target: "aarch64-unknown-linux-gnu"
|
|
arch: "arm64"
|
|
- os: "ubuntu-22.04"
|
|
target: "armv7-unknown-linux-gnueabihf"
|
|
arch: "armhf"
|
|
# Windows
|
|
- os: "windows-2022"
|
|
target: "x86_64-pc-windows-msvc"
|
|
arch: "x86_64"
|
|
# macOs
|
|
- os: "macos-13"
|
|
target: "aarch64-apple-darwin"
|
|
# This is not true, but simplifies the logic of the action.
|
|
arch: "x86_64"
|
|
- os: "macos-13"
|
|
target: "x86_64-apple-darwin"
|
|
arch: "x86_64"
|
|
runs-on: ${{ matrix.platform.os }}
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: ./.github/actions/package
|
|
with:
|
|
arch: ${{ matrix.platform.arch }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
target: ${{ matrix.platform.target }}
|
|
runs_on: ${{ matrix.platform.os }}
|
|
|
|
|
|
publish-cratesio:
|
|
name: Publish to Crates.io
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Enable caching
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt-get update && sudo apt-get install musl-tools libudev-dev
|
|
|
|
- name: Publish espflash
|
|
run: |
|
|
cd espflash
|
|
cargo publish --token ${{ secrets.CARGO_API_KEY }}
|
|
- name: Publish cargo-espflash
|
|
run: |
|
|
cd cargo-espflash
|
|
cargo publish --token ${{ secrets.CARGO_API_KEY }}
|