Skip to content

Commit a471e36

Browse files
committed
testpr: use rattler-build.
1 parent 8cd53ad commit a471e36

File tree

2 files changed

+27
-61
lines changed

2 files changed

+27
-61
lines changed

.github/testpr_environment.yml

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

.github/workflows/testpr.yml

Lines changed: 27 additions & 46 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,46 +110,36 @@ 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
127-
ls
114+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64
128115
cat recipe.yaml
129116
- name: Generate recipes for linux-aarch64
130117
shell: bash -l {0}
131118
if: steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
132119
run: |
133-
git clean -fdx
134120
cp vinca_linux_aarch64.yaml vinca.yaml
135-
vinca --platform linux-aarch64
136-
ls
121+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64
137122
cat recipe.yaml
138123
- name: Generate recipes for osx-64
139124
shell: bash -l {0}
140125
if: steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
141126
run: |
142-
git clean -fdx
143127
cp vinca_osx.yaml vinca.yaml
144-
vinca --platform osx-64
145-
ls
128+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64
146129
cat recipe.yaml
147130
- name: Generate recipes for osx-arm64
148131
shell: bash -l {0}
149132
if: steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
150133
run: |
151-
git clean -fdx
152134
cp vinca_osx_arm64.yaml vinca.yaml
153-
vinca --platform osx-arm64
154-
ls
135+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64
155136
cat recipe.yaml
156137
- name: Generate recipes for win-64
157138
shell: bash -l {0}
158139
if: steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
159140
run: |
160-
git clean -fdx
161141
cp vinca_win.yaml vinca.yaml
162-
vinca --platform win-64
163-
ls
142+
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform win-64
164143
cat recipe.yaml
165144
- name: Check if there are packages to be built
166145
id: newrecipecheck
@@ -173,30 +152,32 @@ jobs:
173152
- name: Build recipes for linux-64
174153
shell: bash -l {0}
175154
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
155+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
156+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing
178157
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
179158
- name: Build recipes for linux-aarch64
180159
shell: bash -l {0}
181160
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
182161
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
162+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
163+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing
185164
- name: Build recipes for osx-64
186165
shell: bash -l {0}
187166
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
188167
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
168+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
169+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing
191170
- name: Build recipes for osx-arm64
192171
shell: bash -l {0}
193172
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
194173
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
174+
pwd
175+
find .pixi
176+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
177+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing
197178
- name: Build recipes for win-64
198179
shell: bash -l {0}
199180
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
200181
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
182+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
183+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing

0 commit comments

Comments
 (0)