Skip to content

fix: Image links

fix: Image links #221

Workflow file for this run

name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
toolchain: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Use Rust Cache
if: ${{ runner.os == 'Linux' }}
uses: Swatinem/[email protected]
- name: Install Protobuf
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Run cargo check --all-targets w/ -D warnings
run: cargo check --all-targets
- name: Run cargo test w/ -D warnings
if: ${{ runner.os == 'Linux' }}
run: cargo test -- --test-threads=1
- name: Run cargo doc
if: ${{ runner.os == 'Linux' }}
run: cargo doc --no-deps --document-private-items --all-features
- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler
- name: Run build --release
run: cargo build --release
rustfmt:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get nightly Rust toolchain with rustfmt
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Run cargo fmt --all -- --check
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get nightly Rust toolchain with clippy
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- name: Install Protobuf
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Run cargo clippy --package duckblog --all-targets
run: cargo clippy --package duckblog --all-targets