From dad2299f3f0710142072739945e1c51992b544d4 Mon Sep 17 00:00:00 2001 From: esc Date: Tue, 21 Jan 2025 20:38:57 +0100 Subject: [PATCH 1/4] rename and refactor the GHA: llvmdev win-64 conda builder As title --- .../llvmdev_win-64_conda_builder.yml | 40 ++++++++++++++++++ .github/workflows/llvmdev_win_builder.yml | 42 ------------------- 2 files changed, 40 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/llvmdev_win-64_conda_builder.yml delete mode 100644 .github/workflows/llvmdev_win_builder.yml 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..4ec85eefd --- /dev/null +++ b/.github/workflows/llvmdev_win-64_conda_builder.yml @@ -0,0 +1,40 @@ +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 + path: ${{ env.CONDA_PKG }} 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 }} From 9b3bc755e43964f6d7da18593e5621ad8bc5dec6 Mon Sep 17 00:00:00 2001 From: esc Date: Tue, 21 Jan 2025 21:10:49 +0100 Subject: [PATCH 2/4] emit workflow run ID As title --- .github/workflows/llvmdev_win-64_conda_builder.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/llvmdev_win-64_conda_builder.yml b/.github/workflows/llvmdev_win-64_conda_builder.yml index 4ec85eefd..4d8a4ec45 100644 --- a/.github/workflows/llvmdev_win-64_conda_builder.yml +++ b/.github/workflows/llvmdev_win-64_conda_builder.yml @@ -38,3 +38,8 @@ jobs: with: name: llvmdev path: ${{ env.CONDA_PKG }} + + - name: Get Workflow Run ID + run: | + echo "Current workflow run ID: ${{ github.run_id }}" + echo "Use this ID when triggering llvmlite workflow" From bffb8980c5d89d78caca2c0733ff44d76aedb3c3 Mon Sep 17 00:00:00 2001 From: esc Date: Tue, 21 Jan 2025 23:49:36 +0100 Subject: [PATCH 3/4] add some options for llvmdev package upload As title --- .github/workflows/llvmdev_win-64_conda_builder.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/llvmdev_win-64_conda_builder.yml b/.github/workflows/llvmdev_win-64_conda_builder.yml index 4d8a4ec45..5909801ae 100644 --- a/.github/workflows/llvmdev_win-64_conda_builder.yml +++ b/.github/workflows/llvmdev_win-64_conda_builder.yml @@ -38,6 +38,9 @@ jobs: with: name: llvmdev path: ${{ env.CONDA_PKG }} + compression-level: 0 + retention-days: 7 + if-no-files-found: error - name: Get Workflow Run ID run: | From 48494e23d0a7d5611f43b5b941ae9e95322cc5d9 Mon Sep 17 00:00:00 2001 From: esc Date: Wed, 22 Jan 2025 09:56:44 +0100 Subject: [PATCH 4/4] fix build command and artifact name As title --- .github/workflows/llvmdev_win-64_conda_builder.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/llvmdev_win-64_conda_builder.yml b/.github/workflows/llvmdev_win-64_conda_builder.yml index 5909801ae..bbd29ea16 100644 --- a/.github/workflows/llvmdev_win-64_conda_builder.yml +++ b/.github/workflows/llvmdev_win-64_conda_builder.yml @@ -31,12 +31,12 @@ jobs: run: | CONDA_BUILD_COMMDAND="conda build ./conda-recipes/llvmdev_manylinux" $CONDA_BUILD_COMMDAND - echo "CONDA_PKG=$(CONDA_BUILD_COMMDAND --output)" >> $GITHUB_ENV + echo "CONDA_PKG=$($CONDA_BUILD_COMMDAND --output)" >> $GITHUB_ENV - name: Upload llvmdev conda package uses: actions/upload-artifact@v4 with: - name: llvmdev + name: llvmdev_win-64_conda path: ${{ env.CONDA_PKG }} compression-level: 0 retention-days: 7