Skip to content

Commit 09df1c7

Browse files
committed
fix: update build
1 parent a36a6c1 commit 09df1c7

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

.github/workflows/cmake-multiple-platform.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ on:
2121
env:
2222
BUILD_TYPE: Release
2323
PROJECT_NAME: plugify-module-cpp
24-
CONDA_CHANNEL_NAME: plugify-module-cpp
2524

2625
jobs:
2726
setup:
@@ -145,14 +144,14 @@ jobs:
145144
uses: actions/checkout@v4
146145
with:
147146
sparse-checkout: |
148-
conda-recipe
147+
conda
149148
sparse-checkout-cone-mode: false
150149

151150
- name: Download build artifacts
152151
uses: actions/download-artifact@v4
153152
with:
154153
name: ${{ env.PROJECT_NAME }}-build-${{ matrix.platform }}-${{ needs.setup.outputs.github_sha_short }}
155-
path: artifacts/
154+
path: conda/
156155

157156
- name: Setup Micromamba
158157
uses: mamba-org/setup-micromamba@v1
@@ -172,20 +171,14 @@ jobs:
172171
- name: Prepare recipe
173172
shell: bash -el {0}
174173
run: |
175-
# Create directory for recipe
176-
mkdir -p "conda-recipe/${{ env.CONDA_CHANNEL_NAME }}"
177-
178-
# Copy artifacts
179-
cp -r artifacts/* "conda-recipe/${{ env.CONDA_CHANNEL_NAME }}/"
180-
181174
# Replace version in meta.yaml
182175
version="${{ needs.setup.outputs.tag_name }}"
183176
version="${version#v}" # Remove leading 'v'
184-
sed "s/REPLACE_VERSION/$version/g" "conda-recipe/${{ env.CONDA_CHANNEL_NAME }}/meta.yaml.example" > "conda-recipe/${{ env.CONDA_CHANNEL_NAME }}/meta.yaml"
177+
sed "s/REPLACE_VERSION/$version/g" "conda/meta.yaml.example" > "conda/meta.yaml"
185178
186179
# Ensure build.sh is executable on Linux
187180
if [[ "$RUNNER_OS" == "Linux" ]]; then
188-
chmod +x "conda-recipe/${{ env.CONDA_CHANNEL_NAME }}/build.sh"
181+
chmod +x "conda/build.sh"
189182
fi
190183
191184
- name: Build conda package
@@ -197,7 +190,7 @@ jobs:
197190
conda config --show channels
198191
199192
# build
200-
conda mambabuild "conda-recipe/${{ env.CONDA_CHANNEL_NAME }}" --output-folder conda-bld --no-test --channel conda-forge
193+
conda mambabuild "conda" --output-folder conda-bld --no-test --channel conda-forge
201194
202195
- name: Prepare channel directory
203196
shell: bash -el {0}
@@ -312,7 +305,7 @@ jobs:
312305
<!DOCTYPE html>
313306
<html>
314307
<head>
315-
<title>Conda Channel - ${{ env.CONDA_CHANNEL_NAME }}</title>
308+
<title>Conda Channel - ${{ env.PROJECT_NAME }}</title>
316309
<style>
317310
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; margin: 0; padding: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
318311
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
@@ -334,16 +327,16 @@ jobs:
334327
<body>
335328
<div class="container">
336329
<div class="header">
337-
<h1>📦 ${{ env.CONDA_CHANNEL_NAME }}</h1>
330+
<h1>📦 ${{ env.PROJECT_NAME }}</h1>
338331
<div class="subtitle">Conda Channel for C++ Language Module</div>
339332
</div>
340333
341334
<div class="card">
342335
<h2>🚀 Quick Start</h2>
343336
<p>Install directly using conda:</p>
344-
<pre>conda install -c https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ ${{ env.CONDA_CHANNEL_NAME }}</pre>
337+
<pre>conda install -c https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ ${{ env.PROJECT_NAME }}</pre>
345338
<p>Or add the channel permanently:</p>
346-
<pre>conda config --add channels https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ && conda install ${{ env.CONDA_CHANNEL_NAME }}</pre>
339+
<pre>conda config --add channels https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ && conda install ${{ env.PROJECT_NAME }}</pre>
347340
</div>
348341
349342
<div class="card">

0 commit comments

Comments
 (0)