Skip to content

Commit

Permalink
Automatically make semvar releases. (#23)
Browse files Browse the repository at this point in the history
* Automatically make semvar releases.

* What was i smoking.
  • Loading branch information
kixelated authored Apr 9, 2024
1 parent 8f0b6fd commit 11f3696
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rust

on:
push:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Install Rust with clippy/rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt

# Set RUSTFLAGS
- run: echo "RUSTFLAGS=--cfg=web_sys_unstable_apis" >> $GITHUB_ENV

# Publish any new crate versions
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Rust

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

Expand Down Expand Up @@ -31,3 +29,6 @@ jobs:

# Check for unused dependencies
- uses: bnjbvr/cargo-machete@main

# Check for semvar violations
- uses: obi1kenobi/cargo-semver-checks-action@v2

0 comments on commit 11f3696

Please sign in to comment.