Skip to content

Commit

Permalink
Update CI to make use of new pepsi functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschuler committed Jan 10, 2025
1 parent 2c88adf commit aad668b
Showing 1 changed file with 28 additions and 38 deletions.
66 changes: 28 additions & 38 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
with:
lfs: true
- name: Check
run: |
./pepsi clippy --workspace
run: ./pepsi clippy

check-cargo-lock:
name: Check Cargo.lock
Expand All @@ -47,9 +46,7 @@ jobs:
with:
lfs: true
- name: Check
run: |
cd ${{ matrix.path }}
cargo update --locked --workspace
run: cd ${{ matrix.path }} && cargo update --locked

check-parameters:
name: Check parameters
Expand All @@ -64,8 +61,7 @@ jobs:
with:
lfs: true
- name: Check
run: |
cargo run --manifest-path=crates/parameter_tester/Cargo.toml
run: ./pepsi run parameter_tester

format:
name: Format
Expand All @@ -80,8 +76,7 @@ jobs:
with:
lfs: true
- name: Check
run: |
cargo fmt --check
run: cargo fmt --check

format-toml:
name: Format TOML files
Expand Down Expand Up @@ -112,16 +107,21 @@ jobs:
with:
lfs: true
- name: Test
run: |
cargo test --profile incremental --all-features --workspace
run: ./pepsi test --all-features

build:
name: Build
strategy:
fail-fast: true
matrix:
target: [imagine, nao, replayer, webots]
profile: [release, dev]
target:
- imagine
- nao
- replayer
- webots
profile:
- dev
- release
runs-on:
- self-hosted
- v3
Expand All @@ -133,19 +133,16 @@ jobs:
with:
lfs: true
- name: Build
run: |
./pepsi build --profile ${{ matrix.profile }} ${{ matrix.target }}
run: ./pepsi build --profile ${{ matrix.profile }} ${{ matrix.target }}

build_services:
name: Build
strategy:
matrix:
path:
[
services/aliveness,
services/breeze,
services/hula,
]
service:
- aliveness
- breeze
- hula
runs-on:
- self-hosted
- v3
Expand All @@ -157,25 +154,20 @@ jobs:
with:
lfs: true
- name: Build
run: |
./pepsi sdk install
. $(./pepsi sdk path)/environment-setup-corei7-64-aldebaran-linux
cd ${{ matrix.path }}
cargo build --release
run: ./pepsi build --release ${{ matrix.service }}

build_tools:
name: Build
strategy:
matrix:
path:
[
tools/annotato,
tools/camera_matrix_extractor,
tools/depp,
tools/fanta,
tools/pepsi,
tools/twix,
]
tool:
- annotato
- camera_matrix_extractor
- depp
- fanta
- pepsi
- twix
- widget_gallery
runs-on:
- self-hosted
- v3
Expand All @@ -187,9 +179,7 @@ jobs:
with:
lfs: true
- name: Build
run: |
cd ${{ matrix.path }}
cargo build --release
run: ./pepsi build --release ${{ matrix.tool }}

build_mkdocs:
name: Build mkdocs
Expand Down

0 comments on commit aad668b

Please sign in to comment.