Skip to content

ci: fix release workflow by using softprops/action-gh-release #4

ci: fix release workflow by using softprops/action-gh-release

ci: fix release workflow by using softprops/action-gh-release #4

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --verbose
# clippy:
# name: Clippy
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install Rust toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# components: clippy
# - name: Rust Cache
# uses: Swatinem/rust-cache@v2
# - name: Run clippy
# run: cargo clippy -- -D warnings
build:
name: Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose
- name: Build release
run: cargo build --release --verbose