name: CI/CD
on:
pull_request:
push:
branches:
- main
env:
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
CARGO_INCREMENTAL: 0
CI: 1
CICD_CHECK_ONLY: 1
RUST_BACKTRACE: short
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
LEAPCPP_NO_LINK: 1
jobs:
ci:
name: CI/CD
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Rust toolchain
run: rustup install stable --profile=minimal
- name: Install CI/CD tooling
run: cargo install --git https://github.com/SludgePhD/CICD --debug
- name: Run CI/CD
run: sludge-cicd
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}