diff --git a/.github/workflows/build-conda.yml b/.github/workflows/build-conda.yml new file mode 100644 index 0000000..3c2f866 --- /dev/null +++ b/.github/workflows/build-conda.yml @@ -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/rattler-build-action@v0.2.23 + with: + recipe-path: conda/recipe.yaml diff --git a/conda/build.sh b/conda/build.sh new file mode 100644 index 0000000..b86d8ea --- /dev/null +++ b/conda/build.sh @@ -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 diff --git a/conda/recipe.yaml b/conda/recipe.yaml new file mode 100644 index 0000000..0e0c969 --- /dev/null +++ b/conda/recipe.yaml @@ -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"