Skip to content

Commit 4d8fd4f

Browse files
authored
fix: add ci for pixi-build-ros (#372)
1 parent ecbca42 commit 4d8fd4f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ros-build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ROS Build backend
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
paths:
8+
# When we change code that bindings depend on, we want to ensure that the maturin builds still work
9+
- crates/pixi-build-backend/**
10+
- Cargo.*
11+
- py-pixi-build-backend/**
12+
13+
# When something in the ros-build package themselves changes
14+
- backends/pixi-build-ros/**
15+
16+
# Or when this workflow changes
17+
- .github/workflows/ros-build.yml
18+
workflow_dispatch:
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
permissions:
25+
contents: read
26+
27+
jobs:
28+
test:
29+
name: Test the pixi-build-ros package
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
with:
34+
submodules: recursive
35+
- uses: prefix-dev/setup-pixi@194d461b21b6c5717c722ffc597fa91ed2ff29fa # v0.9.1
36+
with:
37+
manifest-path: backends/pixi-build-ros/pixi.toml
38+
environments: test
39+
- name: Run tests
40+
run: |
41+
cd backends/pixi-build-ros
42+
pixi run -e test test --color=yes

0 commit comments

Comments
 (0)