name: CI
on:
workflow_call:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
uses: greenticai/.github/.github/workflows/pr-ci.yml@main
with:
variant: host
extras:
runs-on: ubuntu-latest
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
steps:
- name: Free disk space
run: |
df -h
sudo rm -rf /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
df -h
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.95.0
with:
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@main
- name: Add Cargo bin to PATH
run: echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> "$GITHUB_PATH"
- name: Install Greentic fixture tools
run: ci/ensure_fixture_tools.sh
- name: Replay deployer scaffolds
run: cargo run --features internal-tools --bin replay_deployer_scaffolds
- name: Build and validate fixture gtpacks
run: cargo run --features internal-tools --bin build_fixture_gtpacks
- name: Cargo doc
run: cargo doc --no-deps
- name: Build (no default features)
run: cargo build --no-default-features