Skip to content

Commit 31d7fdd

Browse files
Refactor build steps for emscripten platform
1 parent 37319ce commit 31d7fdd

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/testpr.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ jobs:
9393
- name: Check patches
9494
shell: bash -l {0}
9595
run: |
96-
pixi run check-patches
96+
if [ "${{ matrix.platform }}" = "emscripten-wasm32" ]; then
97+
pixi run check-patches-emscripten
98+
else
99+
pixi run check-patches
100+
fi
97101
98102
- name: Restore build cache
99103
id: cache-restore
@@ -124,20 +128,17 @@ jobs:
124128
run: |
125129
ls ${{ matrix.folder_cache }} || true
126130
127-
- name: Build recipes [non emscripten]
131+
- name: Build recipes
128132
shell: bash -l {0}
129-
if: matrix.platform != 'emscripten-wasm32'
130133
run: |
131134
if [ "${{ runner.os }}" = "Windows" ]; then
132135
export VINCA_CUSTOM_CMAKE_BUILD_DIR='C:\x\'
133136
fi
134-
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --skip-existing
135-
136-
- name: Build recipes [emscripten]
137-
shell: bash -l {0}
138-
if: matrix.platform == 'emscripten-wasm32'
139-
run: |
140-
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c https://repo.mamba.pm/emscripten-forge/ -c conda-forge -c robostack-staging --skip-existing --test skip
137+
if [ "${{ matrix.platform }}" = "emscripten-wasm32" ]; then
138+
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c https://repo.mamba.pm/emscripten-forge/ -c conda-forge -c robostack-staging --skip-existing --test skip
139+
else
140+
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --skip-existing
141+
fi
141142
142143
- name: See packages that will be saved in cache
143144
shell: bash -l {0}

0 commit comments

Comments
 (0)