Skip to content

feat: IR-emitter entity (#18) #139

feat: IR-emitter entity (#18)

feat: IR-emitter entity (#18) #139

Workflow file for this run

name: Rust
on:
push:
paths:
- '**/Cargo.toml'
- 'src/**'
- '.github/**/*.yml'
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened ]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run rustfmt
run: cargo fmt --all -- --check
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo test
- name: Run clippy
run: cargo clippy -- -D warnings
dev-release:
name: Create pre-release
if: github.ref == 'refs/heads/main' && !contains(github.ref, 'tags/v')
runs-on: ubuntu-latest
needs: build
steps:
- name: Create pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
release:
name: Create release
if: contains(github.ref, 'tags/v')
runs-on: ubuntu-latest
needs: build
steps:
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false