Skip to content

chore: Update README.md #100

chore: Update README.md

chore: Update README.md #100

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags:
- "v*"
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --verbose
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --verbose
clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --verbose
publish_oca-ast:
runs-on: ubuntu-22.04
if: github.ref_type == 'tag'
needs: [check, test, clippy]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
path: "./oca-ast"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish_oca-bundle:
runs-on: ubuntu-22.04
if: github.ref_type == 'tag'
needs:
- publish_oca-ast
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
path: "./oca-bundle"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish_oca-file:
runs-on: ubuntu-22.04
if: github.ref_type == 'tag'
needs:
- publish_oca-ast
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
path: "./oca-file"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish_oca-dag:
runs-on: ubuntu-22.04
if: github.ref_type == 'tag'
needs:
- publish_oca-ast
- publish_oca-bundle
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
path: "./oca-dag"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish_oca-rs:
runs-on: ubuntu-22.04
if: github.ref_type == 'tag'
needs:
- publish_oca-ast
- publish_oca-bundle
- publish_oca-dag
- publish_oca-file
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
path: "./oca"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}