Skip to content

Commit

Permalink
feat: create the gh workflow with release-please (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
etolbakov committed Nov 16, 2023
1 parent e8f365e commit 509eb6c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Main

on:
push:

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test (${{ matrix.os }})

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- name: Build
run: >
cargo build
--verbose
- name: Run tests (without coverage)
if: matrix.os != 'ubuntu-latest'
run: >
cargo test
--verbose
release-please:
name: Execute release chores

permissions:
contents: write
pull-requests: write

runs-on: ubuntu-latest
needs: build-test

outputs:
created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: rust

0 comments on commit 509eb6c

Please sign in to comment.