From 02d596dd8440113468db7d26939cefc41f1a44a4 Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 23 Jan 2025 20:24:21 +0100 Subject: [PATCH 1/9] llvmlite_linux-64_conda_builder.yml As title --- .../llvmlite_linux-64_conda_builder.yml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 .github/workflows/llvmlite_linux-64_conda_builder.yml diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml new file mode 100644 index 000000000..f282b7de9 --- /dev/null +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -0,0 +1,96 @@ + +name: llvmlite_linux-64_conda_builder + +on: + workflow_dispatch: + inputs: + llvmdev_run_id: + description: 'llvmdev workflow run ID (optional)' + required: false + type: string + +jobs: + linux-64-build: + name: linux-64-build + runs-on: ubuntu-latest + defaults: + run: + shell: bash -elx {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_linux-64_conda + path: llvmdev_conda_packages + 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://$PWD/llvmdev_conda_packages" + else + LLVMDEV_CHANNEL="numba" + fi + CONDA_CHANNEL_DIR="conda_channel_dir" + mkdir $CONDA_CHANNEL_DIR + conda build --debug -c $LLVMDEV_CHANNEL --python=${{ matrix.python-version }} -c defaults conda-recipes/llvmlite" --output-folder=$CONDA_CHANNEL_DIR + + - name: Upload llvmlite conda package + uses: actions/upload-artifact@v4 + with: + name: llvmlite-linux-64-py${{ matrix.python-version }} + path: ${{ env.CONDA_CHANNEL_DIR }} + compression-level: 0 + retention-days: 7 + if-no-files-found: error + + linux-64-test: + name: linux-64-test + needs: linux-64-build + runs-on: ubuntu-latest + defaults: + run: + shell: bash -elx {0} + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + fail-fast: false + + steps: + - name: Setup miniconda + uses: conda-incubator/setup-miniconda@v3 + + - name: Download llvmlite artifact + uses: actions/download-artifact@v4 + with: + name: llvmlite-win-linux-py${{ matrix.python-version }} + + - name: Install conda-build and llvmlite + run: | + conda install conda-build + + - name: Run tests + run: conda build --test llvmlite*.conda From b336f270231c2eb45d9dff9315bb96f6e7319202 Mon Sep 17 00:00:00 2001 From: esc Date: Sat, 1 Feb 2025 13:10:04 +0100 Subject: [PATCH 2/9] fix syntax As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index f282b7de9..48de7943c 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -56,7 +56,7 @@ jobs: fi CONDA_CHANNEL_DIR="conda_channel_dir" mkdir $CONDA_CHANNEL_DIR - conda build --debug -c $LLVMDEV_CHANNEL --python=${{ matrix.python-version }} -c defaults conda-recipes/llvmlite" --output-folder=$CONDA_CHANNEL_DIR + conda build --debug -c $LLVMDEV_CHANNEL -c defaults --python=${{ matrix.python-version }} conda-recipes/llvmlite --output-folder=$CONDA_CHANNEL_DIR - name: Upload llvmlite conda package uses: actions/upload-artifact@v4 From ede0d5b81b248ba636d90165b3a103bc678d8eec Mon Sep 17 00:00:00 2001 From: esc Date: Sat, 1 Feb 2025 20:00:38 +0100 Subject: [PATCH 3/9] adding --no-test to workflow As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index 48de7943c..a6213ef65 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -56,7 +56,7 @@ jobs: fi CONDA_CHANNEL_DIR="conda_channel_dir" mkdir $CONDA_CHANNEL_DIR - conda build --debug -c $LLVMDEV_CHANNEL -c defaults --python=${{ matrix.python-version }} conda-recipes/llvmlite --output-folder=$CONDA_CHANNEL_DIR + conda build --debug -c $LLVMDEV_CHANNEL -c defaults --python=${{ matrix.python-version }} conda-recipes/llvmlite --output-folder=$CONDA_CHANNEL_DIR --no-test - name: Upload llvmlite conda package uses: actions/upload-artifact@v4 From 31fef849223cfd623505c56e14735f468490d484 Mon Sep 17 00:00:00 2001 From: esc Date: Sun, 2 Feb 2025 10:50:55 +0100 Subject: [PATCH 4/9] add missing path in upload As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index a6213ef65..8321541dd 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -62,7 +62,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: llvmlite-linux-64-py${{ matrix.python-version }} - path: ${{ env.CONDA_CHANNEL_DIR }} + path: conda_channel_dir compression-level: 0 retention-days: 7 if-no-files-found: error From f1599875da4abe9cdfad1b494e985d253cdcb7be Mon Sep 17 00:00:00 2001 From: esc Date: Sun, 2 Feb 2025 11:04:41 +0100 Subject: [PATCH 5/9] fix path to download As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index 8321541dd..1c5438a40 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -86,7 +86,7 @@ jobs: - name: Download llvmlite artifact uses: actions/download-artifact@v4 with: - name: llvmlite-win-linux-py${{ matrix.python-version }} + name: llvmlite-linux-64-py${{ matrix.python-version }} - name: Install conda-build and llvmlite run: | From 2ad8cb4ceb7906f5c3bebdb5fc27183139d17b5d Mon Sep 17 00:00:00 2001 From: esc Date: Mon, 3 Feb 2025 16:44:16 +0100 Subject: [PATCH 6/9] fixup path to testing environment As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index 1c5438a40..700e4efe9 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -93,4 +93,4 @@ jobs: conda install conda-build - name: Run tests - run: conda build --test llvmlite*.conda + run: conda build --test linux-64/llvmlite*.conda From c9a46f6aff66e05cdea8cfed6d98c303b4da3ecb Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 6 Feb 2025 16:58:12 +0100 Subject: [PATCH 7/9] enable running on pull-request As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index 700e4efe9..a64426a53 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -2,6 +2,9 @@ name: llvmlite_linux-64_conda_builder on: + pull_request: + paths: + - .github/workflows/llvmlite_linux-64_conda_builder.yml workflow_dispatch: inputs: llvmdev_run_id: From 13e0b56bc2466a7baccd9f0133327397cf17f1eb Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 6 Feb 2025 16:58:26 +0100 Subject: [PATCH 8/9] update name of artifact to download As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index a64426a53..4a5b3bc15 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -44,7 +44,7 @@ jobs: if: ${{ inputs.llvmdev_run_id != '' }} uses: actions/download-artifact@v4 with: - name: llvmdev_linux-64_conda + name: llvmdev_linux-64 path: llvmdev_conda_packages run-id: ${{ inputs.llvmdev_run_id }} repository: ${{ github.repository }} From 820ca803d7aa0313b8b37e82a7f6396d62fbab96 Mon Sep 17 00:00:00 2001 From: esc Date: Tue, 11 Feb 2025 21:09:55 +0100 Subject: [PATCH 9/9] add missing quotes found by shellcheck As title --- .github/workflows/llvmlite_linux-64_conda_builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/llvmlite_linux-64_conda_builder.yml b/.github/workflows/llvmlite_linux-64_conda_builder.yml index 4a5b3bc15..cf372c485 100644 --- a/.github/workflows/llvmlite_linux-64_conda_builder.yml +++ b/.github/workflows/llvmlite_linux-64_conda_builder.yml @@ -59,7 +59,7 @@ jobs: fi CONDA_CHANNEL_DIR="conda_channel_dir" mkdir $CONDA_CHANNEL_DIR - conda build --debug -c $LLVMDEV_CHANNEL -c defaults --python=${{ matrix.python-version }} conda-recipes/llvmlite --output-folder=$CONDA_CHANNEL_DIR --no-test + conda build --debug -c "$LLVMDEV_CHANNEL" -c defaults --python=${{ matrix.python-version }} conda-recipes/llvmlite --output-folder=$CONDA_CHANNEL_DIR --no-test - name: Upload llvmlite conda package uses: actions/upload-artifact@v4