|
| 1 | +name: llvmdev_builder |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - .github/workflows/llvmdev_conda_builder.yml |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +concurrency: |
| 10 | + # Concurrency group that uses the workflow name and PR number if available |
| 11 | + # or commit SHA as a fallback. If a new build is triggered under that |
| 12 | + # concurrency group while a previous build is running it will be canceled. |
| 13 | + # Repeated pushes to a PR will cancel all previous builds, while multiple |
| 14 | + # merges to master will not cancel. |
| 15 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
| 16 | + cancel-in-progress: true |
| 17 | + |
| 18 | +jobs: |
| 19 | + |
| 20 | + windows: |
| 21 | + runs-on: ${{ matrix.os }} |
| 22 | + defaults: |
| 23 | + run: |
| 24 | + shell: bash -el {0} |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + os: [ubuntu-24.04,ubuntu-24.04-arm,macos-13,macos-14,windows-2019] |
| 28 | + recipe: ['llvmdev', 'llvmdev_manylinux'] |
| 29 | + |
| 30 | + steps: |
| 31 | + - name: Clone repository |
| 32 | + uses: actions/checkout@v4 |
| 33 | + |
| 34 | + - name: Setup Miniconda |
| 35 | + uses: conda-incubator/setup-miniconda@v3 |
| 36 | + with: |
| 37 | + auto-update-conda: true |
| 38 | + auto-activate-base: true |
| 39 | + activate-environment: "" |
| 40 | + |
| 41 | + - name: Install conda-build |
| 42 | + run: | |
| 43 | + conda install conda-build |
| 44 | +
|
| 45 | + - name: Build conda package |
| 46 | + env: |
| 47 | + CONDA_CHANNEL_DIR: conda_channel_dir |
| 48 | + run: | |
| 49 | + mkdir $CONDA_CHANNEL_DIR |
| 50 | + conda build ./conda-recipes/${{ matrix.recipe }} --output-folder=$CONDA_CHANNEL_DIR |
| 51 | + ls -lah $CONDA_CHANNEL_DIR |
| 52 | +
|
| 53 | + - name: Upload conda package |
| 54 | + uses: actions/upload-artifact@v4 |
| 55 | + with: |
| 56 | + name: ${{ matrix.recipe }}-${{ runner.os }} |
| 57 | + path: conda_channel_dir |
| 58 | + compression-level: 0 |
| 59 | + retention-days: 7 |
| 60 | + if-no-files-found: error |
| 61 | + run-post: false |
| 62 | + |
| 63 | + - name: Get Workflow Run ID |
| 64 | + run: | |
| 65 | + echo "Current workflow run ID: ${{ github.run_id }}" |
| 66 | + echo "Use this ID when triggering llvmlite workflow" |
0 commit comments