Skip to content

Commit

Permalink
add conda package
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Dec 17, 2024
1 parent 72f653d commit 5aa37de
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: build-conda
on:
workflow_dispatch:
jobs:
build-conda:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build conda package
uses: prefix-dev/[email protected]
with:
recipe-path: conda/recipe.yaml
7 changes: 7 additions & 0 deletions conda/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
curl -L $MLIR_URL -o /tmp/mlir.tar.gz
mkdir /tmp/mlir
tar -xzvf /tmp/mlir.tar.gz -C /tmp/mlir
mkdir ${PREFIX}/bin
cp /tmp/mlir/build/bin/mlir-opt ${PREFIX}/bin/mlir-opt
cp /tmp/mlir/build/bin/mlir-translate ${PREFIX}/bin/mlir-translate
rm -rf /tmp/mlir /tmp/mlir.tar.gz
9 changes: 9 additions & 0 deletions conda/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package:
name: mlir
version: 19.1.1.d401987fe349a87c53fe25829215b080b70c0c1a
source:
git: https://github.com/KULeuven-MICAS/llvm-build
rev: ${{ version }}
about:
homepage: https://github.com/KULeuven-MICAS/llvm-build
summary: "MLIR Builds"

0 comments on commit 5aa37de

Please sign in to comment.