Skip to content

Commit 5e48334

Browse files
committed
testpr: use rattler-build.
1 parent 2b17e9a commit 5e48334

File tree

2 files changed

+25
-56
lines changed

2 files changed

+25
-56
lines changed

.github/testpr_environment.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/testpr.yml

Lines changed: 25 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, macos-14, windows-2019]
1616
platform: [linux-64, linux-aarch64, osx-64, win-64, osx-arm64]
17+
environment: [beta]
1718
exclude:
1819
- os: ubuntu-latest
1920
platform: win-64
@@ -46,6 +47,15 @@ jobs:
4647
- os: windows-2019
4748
platform: osx-arm64
4849
steps:
50+
- uses: actions/checkout@v4
51+
with:
52+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
53+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
54+
55+
- uses: prefix-dev/[email protected]
56+
with:
57+
environments: ${{ matrix.environment }}
58+
4959
# Workaround for https://github.com/RoboStack/ros-humble/pull/141#issuecomment-1941919816
5060
- name: Clean up PATH
5161
if: contains(matrix.os, 'windows')
@@ -55,16 +65,6 @@ jobs:
5565
# git in C:\Program Files\Git\bin is used by pip install git+
5666
dirs: 'C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin'
5767

58-
- uses: actions/checkout@master
59-
- name: install micromamba
60-
uses: mamba-org/setup-micromamba@main
61-
with:
62-
environment-file: .github/testpr_environment.yml
63-
condarc: |
64-
channels:
65-
- robostack-staging
66-
- conda-forge
67-
6868
- shell: bash -l {0}
6969
if: matrix.platform == 'linux-aarch64'
7070
run: |
@@ -81,17 +81,6 @@ jobs:
8181
sudo apt-get update
8282
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxi-dev libxmu-dev
8383
84-
- shell: bash -l {0}
85-
run: |
86-
conda config --show channels | grep defaults && conda config --remove channels defaults
87-
conda info
88-
conda config --show
89-
micromamba install -y pip rospkg networkx "catkin_pkg>=0.4.16" "ruamel.yaml>=0.16.6" "rosdistro>=0.8.0" "empy>=3.3.4" boa
90-
- name: install vinca
91-
shell: bash -l {0}
92-
run: |
93-
# use no-deps for now, otherwise problems with ruamel.
94-
pip install git+https://github.com/RoboStack/vinca.git --no-deps
9584
# For some reason, the Strawberry perl's pkg-config is found
9685
# instead of the conda's one, so let's delete the /c/Strawberry directory
9786
- name: Debug pkg-config problem
@@ -121,45 +110,40 @@ jobs:
121110
shell: bash -l {0}
122111
if: steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
123112
run: |
124-
git clean -fdx
125113
cp vinca_linux_64.yaml vinca.yaml
126-
vinca --platform linux-64
114+
pixi run -v vinca --platform linux-64
127115
ls
128116
cat recipe.yaml
129117
- name: Generate recipes for linux-aarch64
130118
shell: bash -l {0}
131119
if: steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
132120
run: |
133-
git clean -fdx
134121
cp vinca_linux_aarch64.yaml vinca.yaml
135-
vinca --platform linux-aarch64
122+
pixi run -v vinca --platform linux-aarch64
136123
ls
137124
cat recipe.yaml
138125
- name: Generate recipes for osx-64
139126
shell: bash -l {0}
140127
if: steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
141128
run: |
142-
git clean -fdx
143129
cp vinca_osx.yaml vinca.yaml
144-
vinca --platform osx-64
130+
pixi run -v vinca --platform osx-64
145131
ls
146132
cat recipe.yaml
147133
- name: Generate recipes for osx-arm64
148134
shell: bash -l {0}
149135
if: steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
150136
run: |
151-
git clean -fdx
152137
cp vinca_osx_arm64.yaml vinca.yaml
153-
vinca --platform osx-arm64
138+
pixi run -v vinca --platform osx-arm64
154139
ls
155140
cat recipe.yaml
156141
- name: Generate recipes for win-64
157142
shell: bash -l {0}
158143
if: steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
159144
run: |
160-
git clean -fdx
161145
cp vinca_win.yaml vinca.yaml
162-
vinca --platform win-64
146+
pixi run -v vinca --platform win-64
163147
ls
164148
cat recipe.yaml
165149
- name: Check if there are packages to be built
@@ -173,30 +157,30 @@ jobs:
173157
- name: Build recipes for linux-64
174158
shell: bash -l {0}
175159
run: |
176-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
177-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
160+
pixi run rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge
161+
pixi run rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml
178162
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
179163
- name: Build recipes for linux-aarch64
180164
shell: bash -l {0}
181165
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
182166
run: |
183-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=linux-aarch64
184-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=linux-aarch64
167+
pixi run rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge
168+
pixi run rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml
185169
- name: Build recipes for osx-64
186170
shell: bash -l {0}
187171
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
188172
run: |
189-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
190-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
173+
pixi run rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge
174+
pixi run rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml
191175
- name: Build recipes for osx-arm64
192176
shell: bash -l {0}
193177
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
194178
run: |
195-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml --target-platform=osx-arm64
196-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
179+
pixi run rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge
180+
pixi run rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml
197181
- name: Build recipes for win-64
198182
shell: bash -l {0}
199183
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
200184
run: |
201-
boa build additional_recipes/ros2-distro-mutex/ -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
202-
boa build . -m ./.ci_support/conda_forge_pinnings.yaml -m ./conda_build_config.yaml
185+
pixi run rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge
186+
pixi run rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml

0 commit comments

Comments
 (0)