Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions [cargo publish, release note, rust] #44

Merged
merged 4 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
categories:
- title: 🚀 New Features
labels:
- feature
- title: 📄 New Documentation
labels:
- documentation
- title: 🐛 Bug Fixes
labels:
- bug
- title: 🔧 Refactoring
labels:
- refactor
- title: ✅ Changes to GitHub Actions
labels:
- actions
- title: 🎉 Changes for Release
labels:
- release
- title: Other Changes
labels:
- "*"
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: cargo publish

on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: login
run: cargo login ${{ secrets.CARGO_TOKEN }}

- name: publish
run: cargo publish
20 changes: 18 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ name: Rust

on:
pull_request:
branches:
- develop
paths:
- .github/workflows/rust.yml
- "**.toml"
- "**.rs"

push:
branches:
- develop
paths:
- .github/workflows/rust.yml
- "**.toml"
- "**.rs"

jobs:
build:
Expand Down Expand Up @@ -37,3 +44,12 @@ jobs:
- name: Run tests
run: cargo test --verbose --tests
continue-on-error: ${{ matrix.rust == 'nightly' }}

- name: Build for examples
run: cargo build --verbose
working-directory: examples

- name: Run tests for examples
run: cargo test --verbose --tests
continue-on-error: ${{ matrix.rust == 'nightly' }}
working-directory: examples
Loading