diff --git a/.github/workflows/llvmdev_win-64_conda_builder.yml b/.github/workflows/llvmdev_win-64_conda_builder.yml new file mode 100644 index 000000000..bbd29ea16 --- /dev/null +++ b/.github/workflows/llvmdev_win-64_conda_builder.yml @@ -0,0 +1,48 @@ +name: llvmdev_win-64_conda_builder + +on: + workflow_dispatch: + +jobs: + + windows: + name: Windows + runs-on: windows-2019 + defaults: + run: + shell: bash -el {0} + + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - 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: Build llvmdev conda package + run: | + CONDA_BUILD_COMMDAND="conda build ./conda-recipes/llvmdev_manylinux" + $CONDA_BUILD_COMMDAND + echo "CONDA_PKG=$($CONDA_BUILD_COMMDAND --output)" >> $GITHUB_ENV + + - name: Upload llvmdev conda package + uses: actions/upload-artifact@v4 + with: + name: llvmdev_win-64_conda + path: ${{ env.CONDA_PKG }} + compression-level: 0 + retention-days: 7 + if-no-files-found: error + + - name: Get Workflow Run ID + run: | + echo "Current workflow run ID: ${{ github.run_id }}" + echo "Use this ID when triggering llvmlite workflow" diff --git a/.github/workflows/llvmdev_win_builder.yml b/.github/workflows/llvmdev_win_builder.yml deleted file mode 100644 index aeaeeb0e3..000000000 --- a/.github/workflows/llvmdev_win_builder.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: llvmdev_win_builder - -on: - workflow_dispatch: - -jobs: - - windows: - name: Windows - runs-on: windows-2019 - - steps: - - uses: actions/checkout@v4 - - - name: Install Miniconda - shell: pwsh - run: | - $wc = New-Object net.webclient - $wc.Downloadfile("https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe", "Miniconda3-latest-Windows-x86_64.exe") - Start-Process "Miniconda3-latest-Windows-x86_64.exe" "/S /D=C:\Miniconda3" -Wait - - - name: Setup Conda Environment - shell: bash - run: | - source /c/Miniconda3/Scripts/activate - conda create -n builder conda-build -y - - - name: Build - shell: bash - run: | - source /c/Miniconda3/Scripts/activate - conda activate builder - RECIPE_NAME=./conda-recipes/llvmdev_manylinux - conda build $RECIPE_NAME - echo "OUTPUT=$(conda build --output $RECIPE_NAME)" >> $GITHUB_ENV - - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: llvmdev - path: ${{ env.OUTPUT }}