Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .github/actions/with-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ runs:
IMAGE_GROUP=${IMAGE_USER}
Z3_VERSION=$(cat deps/z3)
K_VERSION=$(cat deps/k_release)
K_FRONTEND_REV=$(cat deps/k_frontend_rev)
UV_VERSION=$(cat deps/uv_release)
USER_ID=1000
GROUP_ID=${USER_ID}
Expand All @@ -44,6 +45,7 @@ runs:
--build-arg IMAGE_USER="${IMAGE_USER}" \
--build-arg IMAGE_GROUP="${IMAGE_GROUP}" \
--build-arg K_VERSION="${K_VERSION}" \
--build-arg K_FRONTEND_REV="${K_FRONTEND_REV}" \
--build-arg Z3_VERSION="${Z3_VERSION}" \
--build-arg LLVM_VERSION="${LLVM_VERSION}" \
--build-arg UV_VERSION="${UV_VERSION}"
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,22 @@ RUN apt-get update \
llvm-${LLVM_VERSION}-dev \
llvm-${LLVM_VERSION}-tools \
maven \
openjdk-17-jdk-headless \
python3 \
python3-pip

# The K frontend (k-frontend jar) of the K commit in deps/k_frontend_rev replaces the one of the K
# release above. Only the Java frontend differs from the release; everything else is unchanged.
ARG K_FRONTEND_REV
RUN curl -fsSL "https://github.com/runtimeverification/k/archive/${K_FRONTEND_REV}.tar.gz" | tar -xz -C /tmp \
&& cd "/tmp/k-${K_FRONTEND_REV}" \
&& mvn --batch-mode --quiet -f k-frontend/pom.xml package -DskipTests \
&& jars=$(find / -xdev -path '*/kframework/java/k-frontend-1.0-SNAPSHOT.jar' -not -path '/tmp/*') \
&& test -n "${jars}" \
&& for jar in ${jars}; do cp -v k-frontend/target/k-frontend-1.0-SNAPSHOT.jar "${jar}"; done \
&& cd / \
&& rm -rf "/tmp/k-${K_FRONTEND_REV}" /root/.m2

ARG IMAGE_USER=user
ARG IMAGE_GROUP
ARG USER_ID
Expand Down
1 change: 1 addition & 0 deletions deps/k_frontend_rev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cbdcb3c1441b9a93b454a3cd1900ea8ecffd5570
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
rv-nix-tools.url = "github:runtimeverification/rv-nix-tools/854d4f05ea78547d46e807b414faad64cea10ae4";
nixpkgs.follows = "rv-nix-tools/nixpkgs";

k-framework.url = "github:runtimeverification/k/v7.1.337";
k-framework.url = "github:runtimeverification/k/cbdcb3c1441b9a93b454a3cd1900ea8ecffd5570";
k-framework.inputs.nixpkgs.follows = "nixpkgs";
flake-utils.follows = "k-framework/flake-utils";
blockchain-k-plugin = {
Expand Down
Loading