# Based on https://github.com/taiki-e/parse-changelog/blob/777a82184bcbe0ed975e63a491f5fbf80b29cb1b/.github/workflows/ci.yml
name: Rust CI
permissions:
contents: read
on:
pull_request:
branches:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows other workflows to call this one
workflow_call:
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
RUSTUP_MAX_RETRIES: 10
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run the ./tools/ci.sh script
run: ./tools/ci.sh