Skip to content

llvmlite win-64 conda builder GHA #1

llvmlite win-64 conda builder GHA

llvmlite win-64 conda builder GHA #1

name: llvmlite_win-64_conda_builder
on:
workflow_dispatch:
inputs:
llvmdev_run_id:
description: 'llvmdev workflow run ID (optional)'
required: false
type: string
jobs:
win-64-build:
name: win-64-build
runs-on: windows-2019
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ""
- name: Install conda-build
run: conda install conda-build
- name: Download llvmdev Artifact
if: ${{ inputs.llvmdev_run_id != '' }}
uses: actions/download-artifact@v4
with:
name: llvmdev-windows-x86_64
path: llvmdev-pkg
run-id: ${{ inputs.llvmdev_run_id }}
repository: ${{ github.repository }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build llvmlite conda package
run: |
if [ "${{ inputs.llvmdev_run_id }}" != "" ]; then
LLVMDEV_CHANNEL="file://."
else
LLVMDEV_CHANNEL="numba"
fi
CONDA_BUILD_CMD="conda build -c $LLVMDEV_CHANNEL --python=${{ matrix.python-version }} conda-recipes/llvmlite"
$CONDA_BUILD_CMD
echo "CONDA_PKG=$($CONDA_BUILD_CMD --output )" >> $GITHUB_ENV
- name: Upload llvmlite conda package
uses: actions/upload-artifact@v4
with:
name: llvmlite-win-64-py${{ matrix.python-version }}
path: ${{ env.CONDA_PKG }}
compression-level: 0
retention-days: 7
if-no-files-found: error
win-64-test:
name: win-64-test
needs: win-64-build
runs-on: windows-2019
defaults:
run:
shell: bash -el {0}
strategy:

Check failure on line 77 in .github/workflows/llvmlite_win-64_conda_builder.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/llvmlite_win-64_conda_builder.yml

Invalid workflow file

You have an error in your yaml syntax on line 77
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ""
- name: Download llvmlite artifact
uses: actions/download-artifact@v4
with:
name: llvmlite-win-64-py${{ matrix.python-version }}
- name: Install llvmlite
run: conda install -c file://./llvmlite*.conda llvmlite
- name: Run tests
run: python -m llvmlite.tests