Skip to content

Minimal viable booster framework #6151

Minimal viable booster framework

Minimal viable booster framework #6151

Workflow file for this run

name: Rust
on:
pull_request:
merge_group:
types: [checks_requested]
env:
CARGO_HOME: /__w/hulk/cargo
CARGO_TARGET_DIR: /__w/hulk/target
CARGO_TERM_COLOR: always
HULK_DATA_HOME: /__w/hulk/data
NAOSDK_AUTOMATIC_YES: 1
jobs:
check:
name: Check with clippy
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Check
run: ./pepsi clippy --locked . -- --deny warnings
check-cargo-lock:
name: Check Cargo.lock
strategy:
matrix:
path:
- .
- services/aliveness
- services/breeze
- services/hula
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Check
run: cargo update --locked --workspace --manifest-path ${{ matrix.path }}/Cargo.toml
check-parameters:
name: Check parameters
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Check
run: ./pepsi run --locked parameter_tester
format:
name: Format
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Check
run: cargo fmt --check
format-toml:
name: Format TOML files
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Check
run: |
taplo fmt --check --diff
# test:
# name: Test
# runs-on:
# - self-hosted
# - v3
# container:
# image: ghcr.io/hulks/hulk-ci:1.84.1
# options: --user=1000:1000
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
# - name: Test
# run: ./pepsi test --locked --all-features
build:
name: Build
strategy:
fail-fast: true
matrix:
target:
- imagine
- replayer
- mujoco
profile:
- dev
- release
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Build
run: ./pepsi build --locked --profile ${{ matrix.profile }} ${{ matrix.target }}
build_services:
name: Build
strategy:
matrix:
service:
- aliveness
- breeze
- hula
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Build
run: ./pepsi build --locked --release ${{ matrix.service }}
build_tools:
name: Build
strategy:
matrix:
tool:
- annotato
- camera_matrix_extractor
- depp
- fanta
- pepsi
- twix
- widget_gallery
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.84.1
options: --user=1000:1000
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Build
run: ./pepsi build --locked --release ${{ matrix.tool }}
# build_mkdocs:
# name: Build mkdocs
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
# - name: Install mkdocs
# run: pip install mkdocs-material
# - name: Build docs
# run: mkdocs build --strict
# check-mujoco:
# name: Check Mujoco
# runs-on:
# - self-hosted
# - v3
# container:
# image: ghcr.io/hulks/hulk-ci:1.84.1
# options: --user=1000:1000
# defaults:
# run:
# working-directory: tools/machine-learning/mujoco
# shell: bash
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
# - name: Install uv
# uses: astral-sh/setup-uv@v5
# with:
# version: "0.5.21"
# enable-cache: true
# cache-local-path: "/__w/hulk/.uv-cache"
# - name: Check
# run: |
# uv run ruff check --no-fix
# test-mujoco:
# name: Test Mujoco
# runs-on:
# - self-hosted
# - v3
# container:
# image: ghcr.io/hulks/hulk-ci:1.84.1
# options: --user=1000:1000
# defaults:
# run:
# working-directory: tools/machine-learning/mujoco
# shell: bash
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
# - name: Install uv
# uses: astral-sh/setup-uv@v5
# with:
# version: "0.5.21"
# enable-cache: true
# cache-local-path: "/__w/hulk/.uv-cache"
# - name: Test
# run: |
# uv run pytest
# format-mujoco:
# name: Format Mujoco
# runs-on:
# - self-hosted
# - v3
# container:
# image: ghcr.io/hulks/hulk-ci:1.84.1
# options: --user=1000:1000
# defaults:
# run:
# working-directory: tools/machine-learning/mujoco
# shell: bash
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
# - name: Install uv
# uses: astral-sh/setup-uv@v5
# with:
# version: "0.5.21"
# enable-cache: true
# cache-local-path: "/__w/hulk/.uv-cache"
# - name: Format
# run: |
# uv run ruff format --check
# check-mujoco-lock:
# name: Check Mujoco uv.lock
# runs-on:
# - self-hosted
# - v3
# container:
# image: ghcr.io/hulks/hulk-ci:1.84.1
# options: --user=1000:1000
# defaults:
# run:
# working-directory: tools/machine-learning/mujoco
# shell: bash
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
# - name: Install uv
# uses: astral-sh/setup-uv@v5
# with:
# version: "0.5.21"
# enable-cache: true
# cache-local-path: "/__w/hulk/.uv-cache"
# - name: Check Lockfile
# run: |
# uv sync --locked