Skip to content

Commit c3864ca

Browse files
committed
Add a more useful task to run things locally
1 parent b850ef8 commit c3864ca

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/rattler-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: "true"
7676
RATTLER_BUILD_COLOR: "always"
7777
run: |
78-
pixi run build-recipe --recipe recipe/${{ matrix.bins.bin }}.yaml --target-platform=${{ env.TARGET_PLATFORM }}
78+
pixi run build-recipe-ci $RUNNER_TEMP recipe/${{ matrix.bins.bin }}.yaml ${{ env.TARGET_PLATFORM }}
7979
- name: Upload OSX or Linux packages
8080
shell: bash
8181
if: ${{ startsWith(github.ref, 'refs/tags') && matrix.bins.os != 'windows-latest' && github.repository == env.REPO_NAME }}

pixi.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,19 @@ ruff = ">=0.5.7,<0.6"
6060
[feature.build.dependencies]
6161
rattler-build = ">=0.30.0,<1"
6262

63-
[feature.build.tasks]
64-
build-recipe = "rattler-build build --output-dir=$RUNNER_TEMP --experimental --test native"
63+
[feature.build.tasks.build-recipe-ci]
64+
cmd = "rattler-build build --test native --output-dir={{ output_dir }} --recipe {{ recipe }} --target-platform {{ target_platform }}"
65+
args = ["output_dir", "recipe", "target_platform"]
66+
67+
[feature.build.tasks.build-recipe]
68+
depends-on = [
69+
{ task = "build-recipe-ci", args = [
70+
"./output",
71+
"{{ recipe }}",
72+
"{{ target_platform }}",
73+
] },
74+
]
75+
args = ["recipe", "target_platform"]
6576

6677
[feature.schema.tasks]
6778
generate-schema = "python schema/model.py > schema/schema.json"

0 commit comments

Comments
 (0)