Skip to content

Commit

Permalink
Merge branch 'master' into svd-update
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Dec 22, 2023
2 parents b1021d3 + 96b8e36 commit 380ed3d
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
name: Publish

on:
push:
branches:
- master
workflow_run:
workflows: Rust
branches: master
types: completed

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
rust-channel: [ 'stable', 'nightly' ]
rust-target: [ 'x86_64-unknown-linux-gnu', 'thumbv7em-none-eabi' ]
name: ${{ matrix.rust-channel }}-${{ matrix.rust-target }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-channel }}
target: ${{ matrix.rust-target }}
- name: Cargo Check
run: cargo check --target ${{ matrix.rust-target }}
- name: Cargo Build
run: cargo build --verbose --target ${{ matrix.rust-target }}

release-please:
name: Execute release chores

Expand All @@ -36,7 +18,6 @@ jobs:
pull-requests: write

runs-on: ubuntu-latest
needs: build

outputs:
created: ${{ steps.release.outputs.release_created }}
Expand All @@ -48,7 +29,6 @@ jobs:
release-type: rust
token: ${{ secrets.GH_PERSONAL_TOKEN }}


publish:
name: Publish to crates.io

Expand All @@ -68,4 +48,4 @@ jobs:
cargo publish
--verbose
--locked
--token ${{ secrets.CRATES_TOKEN }}
--token ${{ secrets.CRATES_TOKEN }}

0 comments on commit 380ed3d

Please sign in to comment.