Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prebuilt haskell backend #4473

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/actions/with-k-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ FROM ubuntu:${BASE_DISTRO}
ARG K_DEB_PATH
ARG INSTALL_BACKEND_DEBS
ARG LLVM_BACKEND_DEB_PATH
ARG HASKELL_BACKEND_DEB_PATH

COPY ${K_DEB_PATH} /kframework.deb
COPY ${LLVM_BACKEND_DEB_PATH} /llvm-backend.deb
COPY ${HASKELL_BACKEND_DEB_PATH} /haskell-backend.deb

RUN apt-get -y update \
&& apt-get -y install \
Expand All @@ -19,7 +21,7 @@ RUN apt-get -y update \
/kframework.deb

RUN if [ "${INSTALL_BACKEND_DEBS}" = "true" ]; then \
apt-get -y install /llvm-backend.deb; \
apt-get -y install /llvm-backend.deb /haskell-backend.deb; \
fi

RUN apt-get -y clean
Expand Down
10 changes: 9 additions & 1 deletion .github/actions/with-k-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,28 @@ runs:
DOCKERFILE=${{ github.action_path }}/Dockerfile
K_DEB_PATH=${{ inputs.k-deb-path }}
LLVM_BACKEND_DEB_PATH=llvm-backend.deb
HASKELL_BACKEND_DEB_PATH=haskell-backend.deb

gh release download \
--repo runtimeverification/llvm-backend \
--pattern "*ubuntu_${BASE_DISTRO}.deb" \
--output "${LLVM_BACKEND_DEB_PATH}" \
v$(cat deps/llvm-backend_release)

gh release download \
--repo runtimeverification/haskell-backend \
--pattern "*ubuntu_${BASE_DISTRO}.deb" \
--output "${HASKELL_BACKEND_DEB_PATH}" \
$(cat deps/haskell-backend_release)

docker build . \
--file ${DOCKERFILE} \
--tag ${TAG} \
--build-arg BASE_DISTRO=${BASE_DISTRO} \
--build-arg K_DEB_PATH=${K_DEB_PATH} \
--build-arg INSTALL_BACKEND_DEBS=${INSTALL_BACKEND_DEBS} \
--build-arg LLVM_BACKEND_DEB_PATH=${LLVM_BACKEND_DEB_PATH}
--build-arg LLVM_BACKEND_DEB_PATH=${LLVM_BACKEND_DEB_PATH} \
--build-arg HASKELL_BACKEND_DEB_PATH=${HASKELL_BACKEND_DEB_PATH}

- name: 'Run Docker container'
shell: bash {0}
Expand Down
2 changes: 1 addition & 1 deletion package/debian/kframework-frontend/rules.jammy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export PREFIX
dh $@

override_dh_auto_build:
mvn --batch-mode package -DskipTests -Dllvm.backend.skip
mvn --batch-mode package -DskipTests -Dllvm.backend.skip -Dhaskell.backend.skip

override_dh_auto_install:
package/package --frontend
Expand Down
Loading